iTunes Application Loader - automation

后端 未结 3 1438
深忆病人
深忆病人 2020-12-30 10:19

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

3条回答
  •  猫巷女王i
    2020-12-30 10:55

    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 altool from 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
    

提交回复
热议问题