Bitcode 使用了解

BitcodeXcode7 的新特性。

查看 Bitcode:

TARGETS -> Build Settings -> 搜索Enable Bitcode

可在工程中配置,设置为 YES/NO

Bitcode 官方说明:

官方:
Bitcode is an intermediate representation of a compiled program. apps you upload to App Store Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the App Store.
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.

翻译:
Bitcode是编译后的程序的中间表现,包含Bitcode并上传到App Store Connect的Apps会在App Store上编译和链接。包含Bitcode可以在不提交新版本App的情况下,允许Apple在将来的时候再次优化你的App 二进制文件。
对于iOS Apps,Enable bitcode 默认为YES,是可选的(可以改为NO)。对于WatchOS和tvOS,bitcode是强制的。如果你的App支持bitcode,App Bundle(项目中所有的target)中的所有的Apps和frameworks都需要包含Bitcode。

根据以上描述可以基本了解Bitcode。

下面还有两点注意事项:

  1. 在项目中使用时,我们也是主要会根据某些Framework或.a的时候是否支持 Bitcode来决定我们的项目是否支持 Bitcode.
  2. 在我们需要生成dsym时,必须开启Bitcodedsym文件是在应用发生崩溃或者其他情况后,根据dsym文件进行相应定位解析。
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 很可能你的应用是与一个支持HTTPS传输数据的服务器交互,但是并没有使用TLS 1.2或更高。在这种情况下,你定义...
    Www刘阅读 8,310评论 0 5
  • 级别:★☆☆☆☆标签:「Xcode Bitcode」「iOS Architecture」「arm64e」作者: W...
    QiShare阅读 13,151评论 0 27
  • 不管逃得出逃不出,原生家庭的宿命缠绕着我。莫名其妙的责任感让我窒息,没有强有力的肩膀却想扛下所有事情。要懂事,要顾...
    哦o哦阅读 2,713评论 0 0
  • 11.10号即将来临的这一天,我哭的像个孩子。 一瞬间从喉咙里迸发出的号啕大哭连我自己都吓了一跳,我像孩子一样通过...
    猪拉卡六六六阅读 1,274评论 0 2
  • 今天的我和昨天没有什么区别,唯一的就是我又多了一天的坚持。别小看这日积月累,时间长了说不定我也能有当作家的潜质,即...
    taoyecumt阅读 1,586评论 1 0