How to create ipa in xcode 6 without Apple Developer account?

Khawar picture Khawar · Nov 14, 2014 · Viewed 78k times · Source

Need to generate .ipa file for Ad-Hoc distribution. Client has provided only certificates, private keys and provisioning profiles which were enough to create .ipa till Xcode 5. But in Xcode 6.1 when I export as Save For Ad Hoc Deployment it gives message

To save for Ad Hoc Deployment, you need to add an Apple ID account that is enrolled in the iOS Developer Program for the development team 'xxxxxxxxxx'

enter image description here enter image description here

Is there any way of creating .ipa without developer account credentials?

Answer

Khawar picture Khawar · Nov 14, 2014

Finally found a way for creating .ipa build with xcodebuild command.

  1. Right click on Archive on Organizer.
  2. Click Show in Finder.
  3. You can see .xcarchive file in Finder. enter image description here

  4. Open Terminal and cd to .xcarchive path.

  5. Using following command to generate .ipa file.

This will save .ipa on Desktop.

xcodebuild -exportArchive -exportFormat ipa -archivePath <FILE_NAME>.xcarchive -exportPath ~/Desktop/<FILE_NAME>.ipa

Still looking for better solution, don't know why Apple removed this feature from Xcode 6 :(