Can not export IPA file from XCode 6.1

Akshit Zaveri picture Akshit Zaveri · Nov 21, 2014 · Viewed 6.9k times · Source

I've wasted a day trying to export IPA file using development profiles. I'm a developer since 18 months now. And its not something that i don't know about exporting IPA. And i really hate Apple developers for changing the way we used to export a simple IPA. I've already exported hundreds of times but this time i'm having no luck.

I think what is needed to export a successful IPA requires these things to be available in the system

  1. Private key with Certificate in Keychain -> Login -> My Certificates
  2. Login in with developer account in XCode -> Preferences -> Accounts
  3. Archive the project and select Export -> Save for Ad Hoc Deployment -> Select developer account from the list.
  4. Wait until XCode does some magic. (This is the part where XCode fails everytime. See attached screenshot please)

enter image description here

Here's what i've tried:

  1. Removing all keychain certificates and provisioning profiles. - DIDN'T WORKED
  2. Restart XCode and System (Almost 3 times) - DIDN'T WORKED
  3. Removing certificates and provisioning profiles from Apple developer portal and regenerate all of them. - DIDN'T WORKED
  4. Tried AirSign / Testflight. - DIDN'T WORKED

HINT: I am using XCode 6.1.1 GM SEED and previously had installed along with XCode 6.2 beta. But i removed XCode 6.2 Beta later

Someone please tell me where i'm going wrong.. Thanks...

Answer

Libran Coder picture Libran Coder · Nov 21, 2014

Starting from XCode 6, you have to generate an AdHoc type cerificate from the Apple Developer Center to be able to save the .ipa for AdHoc deployment. I was also facing the same issue and generated a new certificate particularly for AdHoc Distribution. Archiving using that resolved the issue.