問題:xcode 7編譯錯誤:bitcode is not supported on versions of iOS prior to 6.0ios
解決:Build Options | Enable Bitcode 設置爲No便可xcode
緣由:這是Apple Watch使用的緩存
問題:Build iOS時提示無法拉起Xcode:app
UnityException: Launching iOS project via Xcode4 failed. Check editor log for details。ide
解決:最新版xcode有這個問題,手動打開xcode便可。ui
問題:在使用Append模式導出xcode時,Unity出現如下錯誤:spa
Error building Player: KeyNotFoundException: The given key was not present in the dictionary.調試
解決:This issue has been fixed. The fix will appear in 4.6.6p1 and 5.0.3.code
問題:app installation failed an unknow errororm
解決:(1)Clean & Build(2)重啓XCode(3)Window -> Projects -> 選擇項目 -> 刪除Derived Data
問題:This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.
解決:iPhone上已經裝了包標識符同樣的 App,刪掉再運行。
問題:在使用Xcode進行真機調試時,彈出對話框」Could not find Developer Disk Image"
解決:在「/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport」裏列出了當前版本的Xcode7.0支持的設備列表。
若是沒有不支持當前ios版本則須要升級xcode。
Build iOS的2個選項:
Append:只更新變化的部分
Replace:從新替換全部部分
在點run的時候你會發現,全部的scene和Resources裏的東西都會打包成assets結尾的東西,複製到目錄下,這個過程的長短,取決於你的scene有多大,你的Resources內容多很少。
問題:如何查看一個ipa的證書
解決:將ipa解壓出app,而後運行命令
codesign -vv -d ***.app,便可查看
問題:This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.
解決:兩次編譯的用的證書不一致,把以前裝的app卸載,從新安裝下。
問題:Code Signing Error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "972Y28B955" with a private key was found.
解決:本地沒有證書的私鑰,須要導入p12
也有多是由於本地有多個同名證書,xcode選擇的時候衝突了,其中有的有私鑰,有的沒有,這種狀況下將沒有私鑰的
問題:xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
解決:xcode中沒有PackageApplication,拷貝或者下載一份放在xcode裏面便可
問題:xcode卡主,顯示indexing and prebuilding...
解決:清理DerivedData緩存數據,目錄~/Library/Developer/Xcode/DerivedData/