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