博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Bitcode
阅读量:4117 次
发布时间:2019-05-25

本文共 1475 字,大约阅读时间需要 4 分钟。

官方文档: https://developer.apple.com/library/prerelease/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html#//apple_ref/doc/uid/TP40012582-CH35

Bitcode (iOS, watchOS)

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.

Xcode hides symbols generated during build time by default, so they are not readable by Apple. Only if you choose to include symbols when uploading your app to iTunes Connect would the symbols be sent to Apple. You must include symbols to receive crash reports from Apple.

Note: For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.

Bitcode 是编译的应用程序的中间一种形式.你提交到AppStore上的应用程序包含的bitcode会在AppStore上被编译和链接.在未来包含bitcode的应用程序,会让Apple重新优化你的二进制文件而不需要重新提交新的版本.意思就是加入苹果会更换硬件架构(CPU之类的).开发者也不需要再根据不同的平台开发新的软件.Xcode在编译时默认是隐藏symbols的.所以Apple拿不到symbols.只有在你提交APP 到 iTunes Connect时选择了提交symbols.Apple才会拿到程序的symbols.如果你想要收到Apple的crash 报告的话.必须要把symbols提交上去.

注意: iOS APP,bitcode是默认的.但是不是必须的.但是你如果支持bitcode的话,那么应用中的的app和frameworks都必须包含bitcode.对watchOS app来说,bitcode是必须的.

总的来说,bitcode是一种介于LLVM编译器和编程语言的一种中间态.虽然bitcode不能在任何平台上运行,但是它可以转换成任何所支持的CPU架构.然后你就自己脑补吧..

转载地址:http://hvnpi.baihongyu.com/

你可能感兴趣的文章
MySQL中InnoDB事务的默认隔离级别测试
查看>>
微服务的注册与发现
查看>>
bash: service: command not found
查看>>
linux Crontab 使用 --定时任务
查看>>
shell编程----目录操作(文件夹)
查看>>
机器学习-----K近邻算法
查看>>
HBASE安装和简单测试
查看>>
关于程序员的59条搞笑但却真实无比的编程语录
查看>>
搞笑--一篇有趣的文章编译自一篇西班牙博客。有一位美丽的公主,被关押在一个城堡中最高的塔上,一条凶恶的巨龙看守着她,需要有一位勇士营救她…
查看>>
非常不错 Hadoop 的HDFS (Hadoop集群(第8期)_HDFS初探之旅)
查看>>
Tomcat启动错误,端口占用
查看>>
laravel 修改api返回默认的异常处理
查看>>
高德坐标转换百度坐标 javascript
查看>>
tp5封装通用的修改某列值
查看>>
laravel控制器与模型名称不统一
查看>>
vue登录拦截
查看>>
npm配置淘宝镜像仓库以及electron镜像
查看>>
linux设置开机自启动脚本的最佳方式
查看>>
VUE SPA 单页面应用 微信oauth网页授权
查看>>
phpstorm 集成 xdebug 进行调试
查看>>