Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify app id when upload to iTunesConnect using command line

Summary

I`m trying to automatize my applications upload to iTunesConnect.

I have at least 6 apps and all are always "ready to upload".

The problem is when I try to upload an app to iTunesConnect using command line, I have the following error message:

"warning: There are more that one application pre-configured in iTunesConnect. Only the first will be used.".

Questions

  • How can I know what is the first?
  • Is there a way to set the first?
  • Is there a way to specify which app I am trying to submit? How I am doing it?

Build Script...

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"

Upload Script...

security add-generic-password -s Xcode:itunesconnect.apple.com -a [email protected] -w password -U

xcrun -sdk iphoneos Validation -verbose -online -upload ./Dist/$TARGETNAME.ipa

security delete-generic-password  -s Xcode:itunesconnect.apple.com -a [email protected]
like image 331
Robson Bittencourt Avatar asked Mar 21 '23 04:03

Robson Bittencourt


1 Answers

After the recent changes of iTunes Connect, you might want to check out my new open source library: https://github.com/KrauseFx/deliver

It will use the iTMSTransporter to upload your app to iTunes Connect.

You can take a look at how the app is uploaded here: https://github.com/KrauseFx/deliver/blob/master/lib/deliver/itunes_transporter.rb

like image 102
KrauseFx Avatar answered Apr 02 '23 11:04

KrauseFx