【iOS开发】提交构建版本出错:ERROR ITMS-90635

今天打包发布遇到这个问题,


修改了bitcode还是不行,报错就是各种第三方框架类似MBProgressHUD.framework is not consistent with the Mach-O in the main bundle. the main dundle Mach-O contains armv7(machine code)and arm64(machine code)....的情况。

5月底打包时候没有过这样的问题。没错的话这应该是6月苹果更改审核要求后才出现的。

导致这样的问题出现时因为CocoPods导入的框架bitCode不一致导致的。


解决方案

在Podfile文件内容后面加上如下代码:

post_install
do |installer|
    installer.pods_project.targets.each
    do |target|
        target.build_configurations.each
        do |config|
            config.build_settings['ENABLE_BITCODE'] = 'NO'
        end
    end
end


再重新打包上传就OK啦



-------------补充纪录-------------


关于 pod update 时候出现的错误:

[!] Invalid `Podfile` file: syntax error, unexpected tCONSTANT, expecting end-of-input

...ig.build_settings['OTHER_CFLAGS'] || ['$(inherited)']

...                               ^. Updating CocoaPods might fix the issue.

参考 http://www.cnblogs.com/lizzie8023/p/5558504.html  得到以下解决方法:

先删除之前Podfile里面加的post_install do |installer|...... ,然后pod update, 在update之前记得给第三方框架指定一个版本(某些框架最新的可能在你项目无法使用,出现bug),升级后再次执行上面的步骤



-------------补充纪录-------------

对于iOS,bitcode是可选的;对于watchOS,bitcode是必须的;而Mac OS是不支持bitcode。

由此可在打包是去掉默认的勾选“include bitcode”项


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 8
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值