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

来源:互联网 发布:ubuntu进入root 编辑:程序博客网 时间:2024/09/21 08:48

升级了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 code 1 

后来,到Stackoverflow去查找,还真是找到了,把地址贴上。
stackoverflow的解决办法
里面的方法如下:

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

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

1 0