解決XCode 8.1 的bundle format unrecognized, invalid, or unsuitable的問題

升級了XCode 8.1 ,之前一直用真機調(diào)試,程序沒問題。后來改用模擬器調(diào)試,就出現(xiàn)了如下的錯誤:

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文件,不過點擊的時候,會彈出下拉框,選擇就可以了。

最后編輯于
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容