发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store

Posted frounk

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store相关的知识,希望对你有一定的参考价值。

发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store

昨晚上传项目到AppStore,报了这个错,纳尼!?我早上还能成功上传的,当时判断是晚上网速问题导致的,早上再次试了下,还是一样报错,因为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

然后 pod install --no-repo-update

如果 pod install 报错,报错如下:

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

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

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

 


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

以上是关于发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store的主要内容,如果未能解决你的问题,请参考以下文章