xcode 6.0 之前的 iOS 版本不支持 -fembed-bitcode
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30867544/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
-fembed-bitcode is not supported on versions of iOS prior to 6.0
提问by Kiran
Recently i downloaded xcode 7 beta and facing the error:
最近我下载了 xcode 7 beta 并面临错误:
-fembed-bitcode is not supported on versions of iOS prior to 6.0
6.0 之前的 iOS 版本不支持 -fembed-bitcode
Is there any work around to fix this issue with out changing deployment target?
是否有任何解决方法可以在不更改部署目标的情况下解决此问题?
Thanks in advance.
提前致谢。
回答by Tommie C.
Found this recently, which seems to imply that you need to enable bitcode for each framework.
最近发现这个,这似乎意味着您需要为每个框架启用位码。
"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
“Xcode 7 有一个 ENABLE_BITCODE 选项,可以在应用程序、应用程序扩展和框架中嵌入 bitcode。该选项在 iOS 中默认开启,并且对于提交到商店的 watchOS 项目是强制性的。当为目标启用 bitcode 时,所有对象, 链接目标时使用的静态库和用户框架必须包含bitcode。否则链接器将发出错误或警告。(注意:缺少bitcode目前是iOS的警告,但在即将到来的Xcode 7 的测试版。) ENABLE_BITCODE 应始终为所有目标打开。如果您使用第三方提供的库或框架,请联系供应商获取包含位码的更新版本。” 亲爱的上帝,我们需要等待所有库更新吗?:S
Source (link)
来源(链接)
If you don't plan to support Apple Watch you can turn off the option by searching for BITCODE in the project and the target. Change the option to No.
如果您不打算支持 Apple Watch,您可以通过在项目和目标中搜索 BITCODE 来关闭该选项。将选项更改为否。
回答by Michael
I was trying to run the AudioModemcode (set to target iOS 5.1) on an iOS 9.1 device. For me, simply changing the deployment targetof the app to 9.0 (incredibly!) worked (somehow without introducing other errors?!).
我试图在 iOS 9.1 设备上运行AudioModem代码(设置为针对 iOS 5.1)。对我来说,只需将应用程序的部署目标更改为 9.0(难以置信!)即可(不知何故不引入其他错误?!)。