Xcode 14 + fastlane 打包上傳TestFlight失敗問(wèn)題排查
這兩天將Xcode 更新到了 Xcode 14亿虽,很幸運(yùn)的是Xcode 可以正常跑起來(lái)項(xiàng)目躏嚎,很不幸的是打包上傳TestFlight一直報(bào)錯(cuò)。以下是排查的一些思路熟丸,希望可以幫到大家
一、Detected provisioning profile mapping 中的export-method問(wèn)題
當(dāng)出現(xiàn) export - method 為 app-store,而出現(xiàn)如下圖時(shí):
沒(méi)錯(cuò)老翘,需要檢測(cè)一下你的項(xiàng)目中 Build-Setting 中的 Provisioning Profile 各環(huán)境配置的對(duì)應(yīng)文件是否正確,這里升級(jí)到Xcode14之后居然出現(xiàn)了混亂,可惡铺峭。
二墓怀、Could not find transporter at /Applications/Xcode.app/Contents/Developer/. Please make sure you set the correct path to your Xcode installation
當(dāng)出現(xiàn)這個(gè)問(wèn)題時(shí),網(wǎng)上也有很多 issues可以教你解決卫键,我就直接把踩坑的問(wèn)題告訴你吧傀履。這個(gè)就是你需要直接升級(jí) fastlane 版本了。
將 fastlane 更新至 2.211.0 及以上就能解決問(wèn)題莉炉。
查看fastlane 版本命令 fastlane --version
更新 fastlane 命令
bundle update fastlane
同時(shí)issues鏈接也給你附上 解決這個(gè)問(wèn)題
這里需要注意的是钓账,必須把 Gemfile.lock文件也一起更新了。
三絮宁、Your session has expired. Please log in
這個(gè)問(wèn)題是更新完 xcode14 之后無(wú)法讀取到你的用戶信息了梆暮。
解決起來(lái)也很好解決
- Xcode - setting - account 將你的賬號(hào)退出
- 關(guān)閉 Xcode
- 在命令行中輸入
defaults write com.apple.dt.Xcode DVTDeveloperAccountUseKeychainService_2 -bool NO
- 重新打開(kāi)Xcode,登錄你的賬號(hào)就可以了
四绍昂、Could not determine the package’s bundle ID.
Could not determine the package’s bundle ID. The package is missing an Info.plist or the CFBundlePackageType is not ‘APPL’ or ‘FMWK’. Unable to validate your application
這個(gè)錯(cuò)誤需要將 fastlane 的 Fastfile 文件中的
ENV['ITMSTRANSPORTER_FORCE_ITMS_PACKAGE_UPLOAD'] = "true"
改為
ENV['ITMSTRANSPORTER_FORCE_ITMS_PACKAGE_UPLOAD'] = "false"
----- 掘金同步發(fā)布