美文网首页
解决XCode 8.1 的bundle format unrec

解决XCode 8.1 的bundle format unrec

作者: yqmfly | 来源:发表于2016-11-28 13:31 被阅读0次

升级了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文件,不过点击的时候,会弹出下拉框,选择就可以了。

相关文章

网友评论

      本文标题:解决XCode 8.1 的bundle format unrec

      本文链接:https://www.haomeiwen.com/subject/fhdopttx.html