低調の美國生活

各種疑難雜症

Unity 5.1無法在Xcode 7 Build – “error: linker command failed with exit code 1…”問題

unity-5-1-build-on-xcode-7-error-linker-command-failed-with-exit-code-1

最近在研究新專案的東西,結果發現Build到Xcode上一直出現Build Failed的紅色錯誤!

幾經Google後,發現是Unity 5.1與Xcode的Build設定問題。導致Build錯誤的訊息是:“linker command failed with exit code 1…”,
這原因據說主要是因為使用Unity在5.1Build專案到Xcode 7時,在Xcode7中的一項Build設定: BitCode被打開了,而導致Build Failed,解決方式如下/或看上圖:




  1. Click on Unity-iPhone project
  2. Click on Unity-iPhone
  3. *In the Build Settings, click on All 
  4. Change the “Enable BitCode” to No

然後在Xcode重新再Build就可以

 

 

 

 


發佈於 10月20日2015年

小編推薦