以前,在 Xcode 10 中,我们使用altool
上传到App Store:
ALTOOL="/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool"
"$ALTOOL" --upload-app --file "$IPA_PATH" --username "$APP_STORE_USERNAME" --password @keychain:"Application Loader: $APP_STORE_USERNAME"
但在 Xcode 11 中,“Application Loader.app”不再存在,作为Xcode 11 的变化 https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_release_notes/:
Xcode 支持从 Organizer 窗口或使用 xcodebuild 或 xcrun altool 的命令行上传应用程序。 Xcode 中不再包含应用程序加载器。 (29008875)
那么我们现在如何从命令行上传到 TestFlight 或 App Store 呢?
使用 Xcode 11 作为命令行工具,要验证或上传 ipa,请替换altool
with xcrun altool
:
xcrun altool --validate-app --file "$IPA_PATH" --username "$APP_STORE_USERNAME" --password @keychain:"Application Loader: $APP_STORE_USERNAME"
xcrun altool --upload-app --file "$IPA_PATH" --username "$APP_STORE_USERNAME" --password @keychain:"Application Loader: $APP_STORE_USERNAME"
获得更多帮助xcrun altool --help
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)