As an iOS developer you probably have dealt with the tedious tasks of manually building, packaging, tagging, committing and deploying your iOS applications to testflightapp.com. Wouldn’t it be great if all that could be done with a single command?
Well, you are absolutely right! This gem is going to make your life much easier. Here is what it does:
-
Reads your XCode project info file to get your app version and build number
-
Commits all your changes to the git repository
-
Builds your project (or workspace)
-
Packages your application into an IPA file
-
Uploads the IPA file to testflightapp.com
-
Tags your project with the version and build
-
Increments your app build number and commits it to the repo
-
Keeps a log of all your deployments to testflightapp.com in a FLIGHTLOG file
All that with a simple command:
$ testflight takeoff
gem install testflight
To setup your project with the deployment script, run the following command from within your Xcode project folder:
$ testflight checkin
This command will ask you a few questions about your project. If you don’t like being asked questions and prefer to configure your project manually, just create a .tesflight file in your Xcode project folder and provide the following information:
build: developer_name: # This must be your company name or your name as it appears in your .cer from Apple increment_bundle: true # If you want each deployment to increment your build number sdk: "iphoneos6.1" git: commit_changes: true # if you are using git and would like to push changes before each build tag_build: true # will tag each build in git testflight: api_token: # Get it from https://testflightapp.com/account/#api team_token: # Get it from https://testflightapp.com/dashboard/team/edit/ distribution_lists: ["Internal", "Everyone"] # Configure your distribution lists at https://testflightapp.com
Once you have checked in (you only need to do it once per project), you are ready for takeoff. Go to your project folder and simply type:
$ testflight takeoff
Have a safe flight!
Clone the repository, make any changes you like and send me a pull request.