iOS 9 中的新警告:“所有位码都将被删除" [英] New warnings in iOS 9: "all bitcode will be dropped"

查看:20
本文介绍了iOS 9 中的新警告:“所有位码都将被删除"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用中有关于 Google 框架的新警告:

I have this new warning about the Google Framework in my app:

(null): 紧急:所有位码都将被删除,因为'/用户/我的名字/图书馆/手机Documents/com~apple~CloudDocs/foldername/appname/GoogleMobileAds.framework/GoogleMobileAds(GADSlot+AdEvents.o)'是在没有位码的情况下构建的.您必须在启用位码的情况下重建它(Xcode 设置 ENABLE_BITCODE),从供应商,或禁用此目标的位码.注意:这将是一个将来会出错.

(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 个关于相同概念的警告,我无法解决这个问题.此外,我在从我的应用程序访问网络时遇到问题.这是调试区的错误:

Xcode 7 is giving me around 204 warnings about this same concept, and I could not get around with this. Also I have a problem accessing the network from my app. This is the error from the Debugging Area:

-canOpenURL:URL 失败:kindle://home" - 错误:这个应用程序是不允许查询方案kindle"

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

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

All of these problems were not present in iOS 8.

推荐答案

您的库在编译时没有使用 bitcode,但在您的项目设置中启用了 bitcode 选项.在目标构建设置和库构建设置中对 Enable BitcodeNO 以删除警告.

Your library was compiled without bitcode, but the bitcode option is enabled in your project settings. Say NO to Enable Bitcode in your target Build Settings and the Library Build Settings to remove the warnings.

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

For those wondering if enabling bitcode is required:

对于 iOS 应用程序,位码是默认的,但可选的.对于 watchOS 和 tvOS 应用程序,位码是必需的.如果您提供 bitcode,则应用程序包中的所有应用和框架(项目中的所有目标)都需要包含 bitcode.

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

这篇关于iOS 9 中的新警告:“所有位码都将被删除"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆