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

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

问题描述

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

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


(空):紧迫:将删除所有位码,因为
'/ Users / myname / Library / Mobile
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-错误: This应用程序不允许
查询方案

-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选项。对目标构建设置和库构建设置中的启用位码,以删除警告。

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应用程序,需要位码。如果您提供位码,则应用程序捆绑包中的所有应用程序和框架(项目中的所有目标)都需要包含位码。

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天全站免登陆