SCRIPT ! Build your project, run Unit Tests, compute code coverage, package your app, deploy it etc… $ pod install $ xcodebuild -workspace Lima.xcworkspace -scheme "Lima" - destination=build -configuration Debug_deploy -sdk iphoneos7.0 ONLY_ACTIVE_ARCH=YES clean build archive $ xcodebuild -exportArchive -exportFormat "IPA" -archivePath "$NEW_ARCHIVE" -exportPath ./Lima.ipa -exportProvisioningProfile "Lima Adhoc Distribution” # And then upload to testflight via curl Full script here: https://gist.github.com/rvirin/7796647