Thursday 16 October 2014

Create IPA From Terminal For Xcode 6

Step To Genrate IPA

Clean project
Terminal syntax
xcodebuild clean -project $projectname.xcodeproj -configuration Release -alltargets

Make archive
Terminal syntax
xcodebuild archive -project $projectname.xcodeproj -scheme $schemename -archivePath $projectname.xcarchive

Export to ipa
Terminal syntax
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile “Provisioning Profile Name”

E.g.
Step 1: e.g. xcodebuild clean -project /Users/girijesh/Documents/iPad_new_UI_screens/code/iPhone-working-code/prior-dynamic-labling/Oct-9th/SCM/SCM.xcodeproj -configuration Release -alltargets

Step 2: e.g. xcodebuild archive -project  /Users/girijesh/Documents/iPad_new_UI_screens/code/iPhone-working-code/prior-dynamic-labling/Oct-9th/SCM/SCM.xcodeproj -scheme SCM -archivePath /Users/girijesh/Documents/iPad_new_UI_screens/code/iPhone-working-code/prior-dynamic-labling/Oct-9th/SCM/SCM.xcarchive


Step 3: e.g. girijesh$ xcodebuild -exportArchive -archivePath /Users/girijesh/Documents/iPad_new_UI_screens/code/iPhone-working-code/prior-dynamic-labling/Oct-9th/SCM/SCM.xcarchive -exportPath /Users/girijesh/Documents/iPad_new_UI_screens/code/iPhone-working-code/prior-dynamic-labling/Oct-9th/SCM/SCM -exportFormat ipa -exportProvisioningProfile SCM


Thanks
Girijesh
Twitter: @girijeshkumar07

#iOS #Xcode 6 #iPhone #iPad #Apple #iOSSDK #Code

No comments: