如何使用Xcode 11从命令行上传到App Store? [英] How to upload to App Store from command line with Xcode 11?

查看:270
本文介绍了如何使用Xcode 11从命令行上传到App Store?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前,在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,作为 Xcode 11发生了更改:

But with Xcode 11, "Application Loader.app" doesn't exist anymore, as part of the Xcode 11 changes:

Xcode支持使用Organizer窗口或使用xcodebuild或xcrun altool从命令行上传应用程序. Xcode不再包含Application Loader. (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的更多帮助.

这篇关于如何使用Xcode 11从命令行上传到App Store?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆