xcode - iOS 9 中的新警告 : "all bitcode will be dropped"

标签 xcode ios9 bitcode

我的应用中收到了有关 Google 框架的新警告:

(null): URGENT: all bitcode will be dropped because '/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/foldername/appname/GoogleMobileAds.framework/GoogleMobileAds(GADSlot+AdEvents.o)' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future.

Xcode 7 给了我大约 204 个关于这个相同概念的警告,但我无法解决这个问题。另外,我从我的应用程序访问网络时遇到问题。这是来自调试区域的错误:

-canOpenURL: failed for URL: "kindle://home" - error: "This app is not allowed to query for scheme kindle"

所有这些问题在 iOS 8 中都不存在。

最佳答案

您的库是在没有位码的情况下编译的,但在您的项目设置中启用了位码选项。在目标build设置和库build设置中对启用位码NO以删除警告。

对于那些想知道是否需要启用位码的人:

For iOS apps, bitcode is the default, but optional. For watchOS and tvOS apps, bitcode is required. If you provide bitcode, all apps and frameworks in the app bundle (all targets in the project) need to include bitcode.

https://help.apple.com/xcode/mac/current/#/devbbdc5ce4f

关于xcode - iOS 9 中的新警告 : "all bitcode will be dropped",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30848208/

相关文章:

ios - 在 ARKit 体验中计算旋转 SCNPlane 的 4 个顶点位置

ios - .framework 产品无论如何都是红色的

ios - 在 UITabBar 中强制执行静态标题

c - 如何使用 clang -emit-llvm 编译和保留 "unused"C 声明

c - 如何使 clang 编译为 llvm IR

ios - Objective-C 读/写 plist 文件//在尝试了 9999 种不同的解决方案之后

iOS 应用程序在模拟器上工作但不能通过 TestFlight

ios - 意外的 CFBundleExecutable key

ios - 通用 iOS 9.1 应用程序不兼容

ios - 是否需要 bitcode 以允许用户仅下载目标设备所需的可执行架构?