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
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]
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With