您的位置:首页 > 移动开发

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

2016-06-16 17:49 661 查看

发布报错: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 报错,报错如下:[/code]
[!] Invalid `Podfile` file: syntax error, unexpected tCONSTANT, expecting end-of-input

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

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

那就需要先删除之前Podfile里面加的[code]post_install do |installer|...... ,然后pod update, 在update之前记得给第三方框架指定一个版本(某些框架最新的可能在你项目无法使用,出现bug),升级后再次执行上面的步骤
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: