XCode 8位代码兼容性 [英] XCode 8 bitcode compatibility

查看:84
本文介绍了XCode 8位代码兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到新的XCode 8存在问题,这使得无法使用位码在XCode 7上进行存档。
因此,例如,如果我尝试在XCode 8上开发库,则在Xcode 7上使用并启用位码时,出现此错误:

I noticed an issue with the new XCode 8, that makes it impossible to archive on XCode 7 with bitcode. So for example if I'm trying to develop a library on XCode 8, when using on Xcode 7 and enabling bitcode I'm getting this error:

无效的位码版本(生产者:'800.0.38.0_0'阅读器:'703.0.29_0')

Invalid bitcode version (Producer: '800.0.38.0_0' Reader: '703.0.29_0')

在Xcode 8上开发库时,是否有任何解决方法(目标c )?

Is there any workaround for that when developing libraries on Xcode 8 (objective c)?

推荐答案

就我而言,当我添加新的更改位码压缩的Pod库时,问题就来了。因此,在构建设置中更改位代码可以解决我的问题。

In my case, the problem came when i add new pod library which change bitcode compress. So changing bitcode in Build Setting resolve my problem.

请注意,对于使用CocoaPods的项目,应设置 ENABLE_BITCODE = NO

Note that for projects using CocoaPods you should set ENABLE_BITCODE = NO on both the project and the Pods container project targets.

这篇关于XCode 8位代码兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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