ENABLE_BITCODE 在 xcode 7 中有什么作用? [英] What does ENABLE_BITCODE do in xcode 7?

查看:22
本文介绍了ENABLE_BITCODE 在 xcode 7 中有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对嵌入的位码术语有疑问.
什么是嵌入式位码?
何时在新 Xcode 中启用 ENABLE_BITCODE?
在 Xcode 7 中启用 ENABLE_BITCODE 时二进制文件会发生什么?

解决方案

Bitcode 是指发送到 iTunes Connect 的代码类型:LLVM Bitcode".这允许 Apple 使用某些计算来进一步重新优化应用程序(例如:可能缩小可执行文件的大小).如果 Apple 需要更改您的可执行文件,那么他们可以在不上传新版本的情况下执行此操作.

这不同于:切片是 Apple 根据设备的分辨率和架构针对用户设备优化您的应用的过程.切片不需要位码.(例如:仅在 5s 上包含 @2x 图像)

App Thinning 是切片、位码和按需资源的组合

<块引用>

Bitcode 是已编译程序的中间表示.应用您上传到包含位码的 iTunes Connect 将被编译和在 App Store 上链接.包含位码将允许 Apple将来重新优化您的应用程序二进制文件,而无需提交应用商店的新版本.

关于应用瘦身的 Apple 文档>

I have a problem with the embedded bitcode term.
What is embedded bitcode?
When to enable, ENABLE_BITCODE in new Xcode?
What happens to the binary when enabled, ENABLE_BITCODE in Xcode 7?

解决方案

Bitcode refers to to the type of code: "LLVM Bitcode" that is sent to iTunes Connect. This allows Apple to use certain calculations to re-optimize apps further (e.g: possibly downsize executable sizes). If Apple needs to alter your executable then they can do this without a new build being uploaded.

This differs from: Slicing which is the process of Apple optimizing your app for a user's device based on the device's resolution and architecture. Slicing does not require Bitcode. (Ex: only including @2x images on a 5s)

App Thinning is the combination of slicing, bitcode, and on-demand resources

Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes 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 store.

Apple Documentation on App Thinning

这篇关于ENABLE_BITCODE 在 xcode 7 中有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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