Xcode11更新以后,原来自带的上传工具没有了,只能通过终端来上传了,具体操作步骤如下
1.使用xcrun
工具
2.到苹果后台创建密钥
这个会生成一个文件,下载到本地,将这个文件放到/Users/payne/private_keys
新建了个private_keys
文件夹中。
3.打开终端,分别输入以下两条命令
校验ipa:
xcrun altool --validate-app -f xxxx.ipa -t ios --apiKey xxxx --apiIssuer xxxx --verbose
上传ipa:
xcrun altool --upload-app -f xxxx.ipa -t ios --apiKey xxxxx --apiIssuer xxxxx --verbose
其中 xxxx.ipa 为ipa在本地的路径,apiKey就是2.中对应的密钥ID,apiIssuer对应的就是2.中的Issuer ID
4.接下来就是等待,然后信息中会有一句No errors validating archive at xxx.ipa
证明验证成功了;No errors uploading xxx.ipa
证明上传成功了。