iOS 發布報錯:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store

本文轉載自 blog? http://www.cnblogs.com/lizzie8023/p/5558504.html

因為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),升級后再次執行上面的步驟


我也是在糾結了挺長時間之后找才用這個解決方法,所以在這里拿出來分享給大家,希望對還處在困擾中的人能夠有所幫助.

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容