原文链接
I am using XCode 11 GM Seed 2 (11A420a). I've tried
xcrun altool --upload-app --type ios --file "path/to/application.ipa"
--username "YOUR_ITMC_USER" --password "YOUR_ITMC_PASSWORD"
But it didn't work for me as it were generating an error code like
"Error Domain=ITunesSoftwareServiceErrorDomain Code=-22014.
I generated an App Store API Key (see https://appstoreconnect.apple.com/access/api), saved in in my
~/.appstoreconnect/private_keys directory and made this bash script named applicationloader.sh:#!/bin/bash
APPFILE=$1
set -euo pipefail
# key is in ~/.appstoreconnect/private_keys
KEY="密钥ID"
ISSUER="YOUR ISSUER ID"
xcrun altool --upload-app --type ios --file $APPFILE --apiKey $KEY --apiIssuer $ISSUER
Then (after a
chmod a+x applicationloader.sh) I just typeapplicationloader.sh app.ipa
and the app uploads to testflight no problem.
Hope this helps.
评论
发表评论