如何使用命令行上传到iTunesConnect时指定应用程序ID [英] How to specify app id when upload to iTunesConnect using command line
问题描述
摘要
我正在尝试将我的应用程序自动上传到iTunesConnect。
I`m trying to automatize my applications upload to iTunesConnect.
我有至少6个应用程序,并且所有应用程序始终已准备好上传。
I have at least 6 apps and all are always "ready to upload".
问题是当我尝试使用命令行将应用程序上传到iTunesConnect时,我有以下错误消息:
The problem is when I try to upload an app to iTunesConnect using command line, I have the following error message:
警告:iTunesConnect中预先配置了一个应用程序。只有第一个应用程序将被使用。。
"warning: There are more that one application pre-configured in iTunesConnect. Only the first will be used.".
问题
- 我怎么知道第一个是什么?
- 有没有办法设置第一个?
- 有没有办法指定我要提交的应用?我是怎么做的?
构建脚本......
xcodebuild -target $TARGETNAME -configuration Release -sdk iphoneos clean build "CODE_SIGN_IDENTITY=iPhone Distribution: XXXXX..." "PROVISIONING_PROFILE=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
xcrun -sdk iphoneos PackageApplication -v $CURRENTDIR/build/Release-iphoneos/$TARGETNAME.app -o $CURRENTDIR/Dist/$TARGETNAME.ipa --sign "iPhone Distribution: XXXXX..." --embed "path/to/XXXXX.mobileprovision"
上传脚本。 ..
security add-generic-password -s Xcode:itunesconnect.apple.com -a user@email.com -w password -U
xcrun -sdk iphoneos Validation -verbose -online -upload ./Dist/$TARGETNAME.ipa
security delete-generic-password -s Xcode:itunesconnect.apple.com -a user@email.com
推荐答案
最近iTunes C更改后onnect,您可能想查看我的新开源库: https://github.com/KrauseFx/deliver
After the recent changes of iTunes Connect, you might want to check out my new open source library: https://github.com/KrauseFx/deliver
它将使用 iTMSTransporter
将您的应用程序上传到iTunes Connect。
It will use the iTMSTransporter
to upload your app to iTunes Connect.
您可以在此处查看应用程序的上传方式: https://github.com/KrauseFx/deliver/blob/master/lib/deliver/itunes_transporter.rb
You can take a look at how the app is uploaded here: https://github.com/KrauseFx/deliver/blob/master/lib/deliver/itunes_transporter.rb
这篇关于如何使用命令行上传到iTunesConnect时指定应用程序ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!