原創文章,轉載請註明: 轉載自All-iPad.net 本文連結地址: Unity + Xcode3.2.6 + iOS SDK4.3的問題終於得到解決
6月15號,來自於Unity官方部落格的一條訊息,Unity + Xcode3.2.6 + iOS SDK4.3的問題終於得到解決了!這個困擾了無數Unity開發人員,也包括我的問題,最終還是在論壇熱心觀眾“susantio” and “ratrodstudio”的協助之下,不是Unity,也不是Apple,多少還是讓人有些失望。
雖然Unity官方再次強調“because all the troubles were happening after application gets post-processed for AppStore on Apple’s side”,可這仍然是相當的不作為。要知道,受影響的開發人員有多少!
好了,Unity3.4即將發布,這個BUG修複已經整合到了這個新版本裡,如果你等不及的話,也可以按照官方提供的方法先嘗試一下,我沒有試過,不過應該不會再有問題了。
Instructions how to add this flag to your release build when using Xcode 3.2.6 (SDK 4.3):
1. Open your project in Xcode.
2. In the Xcode menu select Project->Edit Active Target.
3. In the Configuration drop down select “Release”.
4. In the Search field type “linker”.
5. Find the field named “Other Linker Flags” and double click on it.
6. Click “+” and add “-all_load”.
7. Clean all targets.
Instructions how to add this flag to your release build when using Xcode 4/4.0.2 (SDK 4.3):
1. Open your project in Xcode.
2. In the Project Navigator click on your project.
3. On the next pane select “Unity-iPhone” under TARGETS.
4. On the next pane select “Build Settings”.
5. In the Search field type “linker”.
6. Find the field named “Other Linker Flags” and double click on “Release” configuration near it.
7. Click “+” and add “-all_load”.
8. Clean all targets.
9. Make a distribution build by clicking “Product”->”Build For”->”Build For Archiving” (Note:don’t use Product->Build, because it will make “debug” build by default and won’t include “-all_load” flag).
原創文章,轉載請註明: 轉載自All-iPad.net
本文連結地址: Unity + Xcode3.2.6 + iOS SDK4.3的問題終於得到解決