使用 Jenkins 和 altool 自动上传 IPA 失败并出现 'Transporter not found' 错误

Automatic IPA uploading with Jenkins and altool fails with 'Transporter not found' error

我正在使用 Jenkins 和 altool 来验证 iOS 包并自动将其上传到我的 iTunes 帐户。虽然验证工作正常并且我没有收到任何错误,但上传不起作用。

'/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/altool' --upload-app -f my_application.ipa -u **** -p '****'

结果我收到以下错误:

altool[35164:1584273] Error: Exception while launching iTunesTransporter: Transporter not found at path: /usr/local/itms/bin/iTMSTransporter. You should reinstall the application. altool[35164:1584271] Error: Errors uploading

如果我使用相同的包并尝试使用 Application Loader 上传它,一切正常。

尝试重新创建 /usr/local/itms 符号链接以指向 Xcode.app 的正确子目录。 e.g.something 像这样 Xcode 7.1:

ln -s /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms /usr/local/itms

Xcode 升级后可能需要这样做。