xcode常見錯誤處理


問題:xcode 7編譯錯誤:bitcode is not supported on versions of iOS prior to 6.0

解決:Build Options | Enable Bitcode 設置為No即可

原因:這是Apple Watch使用的

 

問題:Build iOS時提示沒法拉起Xcode:

  UnityException: Launching iOS project via Xcode4 failed. Check editor log for details。

解決:最新版xcode有這個問題,手動打開xcode即可。

 

問題:在使用Append模式導出xcode時,Unity出現以下錯誤:

  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.

 

問題:app installation failed an unknow error

解決:(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/

 

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM