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]