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
證明上傳成功了。