如何使用 Xcode 11 从命令行上传到 App Store? [英] How to upload to App Store from command line with Xcode 11?
问题描述
以前,使用 Xcode 10,我们使用 altool
上传到 App Store:
Previously, with Xcode 10, we were using altool
to upload to 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 的变化:
But with Xcode 11, "Application Loader.app" doesn't exist anymore, as part of the Xcode 11 changes:
Xcode 支持从管理器窗口或从命令行使用 xcodebuild 或 xcrun altool 上传应用程序.Application Loader 不再包含在 Xcode 中.(29008875)
Xcode supports uploading apps from the Organizer window or from the command line with xcodebuild or xcrun altool. Application Loader is no longer included with Xcode. (29008875)
那么我们现在如何从命令行上传到 TestFlight 或 App Store?
So how do we upload from command line to TestFlight or App Store now?
推荐答案
使用 Xcode 11 作为命令行工具,验证或上传 ipa,将 altool
替换为 xcrun altool
:
With Xcode 11 as command line tools, to validate or upload an ipa, replace 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
的帮助.
Get more help with xcrun altool --help
.
这篇关于如何使用 Xcode 11 从命令行上传到 App Store?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!