Found this helpful article. source: http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/ Clean project xcodebuild clean -project $projectname.xcodeproj -configuration Release -alltargets Create project archive xcodebuild archive -project $projectname.xcodeproj -scheme $schemename -archivePath $projectname.xcarchive Create IPA xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile “Provisioning Profile Name”