Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatic Apple TestFlight upload

Tags:

ios

testflight

Now that Apple is shutting down (the old) TestFlight, I've started to look at their own TestFlight implementation.

Is there any way to submit a binary to Apple via a script? Maybe via "Application Loader"? I'd like to integrate this into a CI system.

Edit: I was able to control Application Loader via AppleScript and an unfinished version of the script is here: https://gist.github.com/maciekish/88fb6935c3d2a213b1d2

The new question is how can i build an .ipa file to give to Application Loader in a post archive script?

like image 974
Maciej Swic Avatar asked Feb 02 '15 15:02

Maciej Swic


People also ask

How long does it take to upload a build to TestFlight?

In regular days, it usually takes 1 - 1 and a half days. Generally first build of your new version takes longer than the following builds especially if there is a major change.

How upload iOS build to TestFlight?

Release your app on TestFlightNavigate to the TestFlight tab of your app's application details page on App Store Connect. Select Internal Testing in the sidebar. Select the build to publish to testers, then click Save. Add the email addresses of any internal testers.

How do I submit a TestFlight build?

Log in to https://itunesconnect.apple.com In your app, click on TestFlight in the top menu. You should see the build uploaded. Be sure to note down your build number for adding to a beta group. By default you will be able to test your app yourself, simply by installing the TestFlight app on your phone.


4 Answers

I struggled a lot and finally I configured TeamCity and TestFlight and uploaded generated IPA from team city onto test flight using following script. This is Application Loader command line tool

/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool --upload-app -f %system.teamcity.build.workingDir%/Build/IPA/**IPA_NAME**.ipa -u '**TESTFLIGHT_USER_NAME**' -p '**TESTFLIGHT_PASSWORD**'
like image 197
Surendra Kumar Avatar answered Oct 15 '22 12:10

Surendra Kumar


Apple has published APIs for app store connect. By using these APIs you can automate TestFlight related operations like add/delete testers or submit build for review etc. You can find more details here: https://developer.apple.com/documentation/appstoreconnectapi/testflight

like image 22
Mahesh K Avatar answered Sep 28 '22 03:09

Mahesh K


Both fastlane and nomad provide excellent command-line resources for building & uploading binaries (among other things).

like image 5
pdesantis Avatar answered Oct 15 '22 10:10

pdesantis


I know it's completely outdated, but for those who come across this post in the future.

Yes you can automate the upload process by using the Application Loader command-line tool called altool:

http://help.apple.com/itc/apploader/#/apdATD1E53-D1E1A1303-D1E53A1126

The syntax for uploading the .ipa file is:

altool --upload-app -f [path_to_file] -u [username] -p [password]

This tool requires a Mac, but you can always rent a mac from macincloud.com (not related) and automate the process with a CI server like Jenkins or so.

like image 2
Rob Angelier Avatar answered Oct 15 '22 10:10

Rob Angelier