昨晚上傳項目到AppStore,報了這個錯,納尼!?我早上還能成功上傳的,當時判斷是晚上網速問題致使的,早上再次試了下,仍是同樣報錯,由於CocoPods導入的框架bitCode不一致致使的,解決方案是在Podfile後面加上html
而後 pod install --no-repo-update
若是 pod install 報錯,報錯以下: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
[!] Invalid `Podfile` file: syntax error, unexpected tCONSTANT, expecting end-of-input框架
...ig.build_settings['OTHER_CFLAGS'] || ['$(inherited)']post
... ^. Updating CocoaPods might fix the issue.ui
那就須要先刪除以前Podfile裏面加的post_install do |installer|...... ,而後pod update, 在update以前記得給第三方框架指定一個版本(某些框架最新的可能在你項目沒法使用,出現bug),升級後再次執行上面的步驟