2015-06-16 16 views
58

最近我下載的Xcode 7測試版,面向誤差支持iOS版本是否有任何解決此問題的方法來改變部署目標?-fembed-位碼是不是之前6.0

在此先感謝。

+0

我建議你考慮刪除對iOS 5的支持。現在大多數庫都將用bitcode構建。禁用位代碼意味着您無法支持Watch OS –

+0

@Gautam:Watch OS需要單獨爲Watch OS構建的獨立庫。這意味着一個單獨的構建目標,因此不需要在針對Watch OS的iOS目標中保留位代碼。不過,當爲iOS構建應用程序時,當然還有其他一些原因。 – Kaiserludi

回答

115

最近發現這似乎暗示你需要爲每個框架啓用位碼。

"Xcode 7 has a ENABLE_BITCODE option to embed bitcode in apps, app extensions, and frameworks. The option is turned on by default for iOS and is mandatory for watchOS projects submitted to the store. When bitcode is enabled for a target, all the objects, static libraries and user frameworks used when linking that target must contain bitcode. Otherwise, an error or a warning will be issued by the linker. (Note: missing bitcode is currently a warning for iOS, but it will become an error in an upcoming beta release of Xcode 7.) ENABLE_BITCODE should be consistently turned on for all the targets. If you use a library or framework provided by a third party, please contact the vendor for an updated version which contains bitcode." Dear God, do we need to wait for all libs to update? :S

源(link

如果你不打算支持蘋果觀看,你可以通過搜索項目和目標位碼關閉該選項。選項改變爲

bitcode

+0

感謝您的回覆,有沒有任何選項可以關閉它? – Kiran

+2

@Kiran,是的,只需點擊啓用位代碼行中的項目目標位置,然後選擇「否」 – Danoli3

+6

標記答案正確 – fnc12

2

我試圖運行AudioModem代碼(設定爲目標的iOS 5.1)在iOS 9.1設備上。對我來說,只需changing the deployment target的應用程序9.0(令人難以置信的!)工作(不知何故沒有引入其他錯誤?!)。

+2

OP明確提出解決方案而不更改部署目標。 – lupz

相關問題