通过命令行上传ipa到appstore

搞持续集成自动化打包上传到appstore遇到这个问题,记录一下。

其实主要就一条到命令:
xcrun altool --upload-app -f xxxx.ipa -u "yanqizhou@126.com" -p "*******"

这里的密码不是App id的登录密码,是一个App专用的密码,如果使用登录密码会报错:Please sign in with an app-specific password. You can create one at appleid.apple.com

  1. 登录 https://appleid.apple.com/
  2. 在安全栏有一个App 专用密码,点击生成一个
  3. 在命令中使用第二部生成的密码登录

上传完会看到提示:
No errors uploading 'xxxx.ipa'

Author: y500
Link: https://www.y500.me/2020/10/21/cli-upload-ipa-to-appsotre/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.