我想知道如何在 XCODE 7 beta 4 中获得选项 ENABLE Bitcode?

I would like to know how to get option ENABLE Bitcode in XCODE 7 beta 4?

我想为 iOS 版本 5.1.1 及更高版本部署 iOS 应用程序 xcode 7.

但是当我在 Xcode 7 beta 4 中尝试 运行 我的 iOS 应用程序项目时,它显示错误消息 “6.0 之前的 iOS 版本不支持 -fembed-bitcode”

对于这个错误,我在谷歌搜索上发现了以下预测, "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."

然后尝试在 Xcode 7 beta 4 中设置 ENABLE_BITCODE = NO 但是我在 Xcode 7 beta 4 的项目和目标的构建设置下找不到这个选项我的 iOS 申请项目。

请帮助我我想知道如何在 XCODE 7 beta 4 中获得选项 ENABLE Bitcode?

提前致谢。

在构建设置搜索字段中键入 bitcode 会在编辑器中为我显示 Enable Bitcode 构建设置。启用位码构建设置位于构建选项组中。

显示选项 ENABLE_BITCODE Xcode 中的选项 7 使用以下步骤,

1) 右键单击​​“YourProjectName.xcodeproj”文件和Select“显示包内容”选项。

2) 打开“project.pbxproj”TextEdit应用程序并添加ENABLE_BITCODE = NO; project.pbxproj 文件中的两个位置,如下所示,

1D6058950D05DD3E006BFB54 /* 发布 / = {/ 为 PBXNativeTarget "::APP_TITLE::" 构建配置列表 */ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = 启动图像; ENABLE_BITCODE = 否;

1D6058940D05DD3E006BFB54 /* 调试 / = {/ 为 PBXNativeTarget "::APP_TITLE::" 构建配置列表 */ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = 启动图像; ENABLE_BITCODE = 否;

3) 将以上更改保存在“project.pbxproj”文件中。

4) 在 Xcode 7 中打开您的项目,然后您将在 Targets => BuildSettings 下看到选项 ENABLE_BITCODE。

5) 将 ENABLE_BITCODE = NO 设置为调试、发布、分发。

6) 在您的设备上构建并运行您的项目。

这个回答有点晚了,但是对于那些第一次访问这个页面的人来说。当您单击 Build Settings 时,请确保您还 select All 选项卡然后搜索 bitcode.

默认情况下,Basic 选项卡是 selected,您将无法在 Enable Bitcode 构建选项。也就是说,如果您过去更改过位码设置,它也会显示在 Basic 选项卡下。从上面的 Mark Szymczyk post 可以看出,All 选项卡是 selected.