通過命令行上傳ipa到appstore

搞持續集成自動化打包上傳到appstore遇到這個問題,記錄一下。

其實主要就一條到命令:
xcrun altool --upload-app -f xxxx.ipa -u "[email protected]" -p "*******"

這裡的密碼不是App id的登錄密碼,是一個App專用的密碼,如果使用登錄密碼會報錯:Please sign in with an app-specific password. You can create one at appleid.apple.com

  1. 登錄 //appleid.apple.com/
  2. 在安全欄有一個App 專用密碼,點擊生成一個
  3. 在命令中使用第二部生成的密碼登錄

上傳完會看到提示:
No errors uploading 'xxxx.ipa'

Tags: