升級(jí)了XCode 8.1 申屹,之前一直用真機(jī)調(diào)試,程序沒(méi)問(wèn)題饱亮。后來(lái)改用模擬器調(diào)試吧凉,就出現(xiàn)了如下的錯(cuò)誤:
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
后來(lái),到Stackoverflow去查找怎栽,還真是找到了丽猬,把地址貼上。
里面的方法如下:
Select Podsinthe navigation -->TARGETS -->your FDTakeResources -->Signing(Enable Development Signing) -->Identity(Choose Info.plist File).
同時(shí)還要注意婚瓜,在Identity里面宝鼓,需要選擇info.plist文件,不過(guò)點(diǎn)擊的時(shí)候巴刻,會(huì)彈出下拉框,選擇就可以了蛉签。