Since recently Apple changed the iTunes Connect interface, and people are required to upload apps with the Application Loader.
That\'s nice but I need a script for a
You can use any of these commands either one by one or all in one bash script to actually automate your Archive, Extract and Upload process to the AppStore Connect.
ARCHIVE
xcodebuild -workspace "${APP_NAME}.xcworkspace" -scheme "${APP_NAME}" clean archive -configuration release -sdk iphoneos -archivePath ".build/${TEMP_BUILD}.xcarchive"
EXPORT TO IPA
xcodebuild -exportArchive -archivePath ".build/${TEMP_BUILD}.xcarchive" -exportOptionsPlist "ExportOptions.plist" -exportPath ".build/${TEMP_BUILD}.ipa"
UPLOAD IPA TO TESTFLIGHT
altool --upload-app -f ".build/${TEMP_BUILD}.ipa/${APP_NAME}.ipa" -u $APP_STORE_USERNAME -p $APP_STORE_PASSWORD
1) If you don't know what should be your ExportOptions.plist file just take a look here.
2) To use
altoolfrom anywhere in the terminal you could add it to your PATH env variable by typing in terminal:MacBook-Pro:~ denis$ export PATH=$PATH:/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/ MacBook-Pro:~ denis$ source ~/.bash_profile