解决XCode 8.1 的bundle format unrecognized, invalid, or unsuitable的问题

升级了XCode 8.1 ,之前一直用真机调试,程序没问题。后来改用模拟器调试,就出现了如下的错误:

CodeSign ~/Library/Developer/Xcode/DerivedData/...BundleName.bundle

cd ~/.../Pods

export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

export PATH="..."

Signing Identity:"-"

/usr/bin/codesign --force --sign - --timestamp=none ~/Library/Developer/Xcode/DerivedData/...BundleName.bundle

~/Library/Developer/Xcode/DerivedData/...BundleName.bundle: bundle format unrecognized, invalid, or unsuitable

Command /usr/bin/codesign failed with exit code1

后来,到Stackoverflow去查找,还真是找到了,把地址贴上。

解决办法

里面的方法如下:

Select Podsinthe navigation -->TARGETS -->your FDTakeResources -->Signing(Enable Development Signing) -->Identity(Choose Info.plist File).


同时还要注意,在Identity里面,需要选择info.plist文件,不过点击的时候,会弹出下拉框,选择就可以了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容