Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 enterprise distribution not working

Tags:

I am using my company provided enterprise distribution profile (I donot have the userid/password to create the distribution profile) to distribute application. Recently I have upgraded from xcode 5.1 to 6. Since then I am unable to export ipa file. When I chose "Save for Enterprise Distribution" > Next it gives error "You need to add an Apple ID account that is enrolled in the iOS developer program". But earlier I used the same process to export application and used to show a window with company provided distribution profile name. Though it deploy application to my iPhone 5s. I have checked `/Library/MobileDevices/Distribution Profile has the provision profile.

Please let me know what am I missing or I have to do to export for enterprise distribution of apps.

like image 456
Debopam Avatar asked Sep 24 '14 04:09

Debopam


People also ask

How do I enable untrusted enterprise developer on my iPhone?

Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer. Then you see a prompt to confirm your choice.


2 Answers

I just hit this same problem. It appears that xcode 6 has added an arbirary restriction on exporting ipas with provisioning profiles that you aren't a team member of. You can get around it by manually exporting and signing using the cli.

http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/

like image 24
seanalltogether Avatar answered Sep 20 '22 15:09

seanalltogether


I got the same issue and found this article which helped me a lot about creating an IPA from command line : http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/

Since you already have your xcarchive created, only the last part is important :

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

As mentioned in the article, the “Provisioning Profile Name” parameter is neither the name of the provisioning file nor the UDID, but the name of the provisioning as created in the iOS Dev Center. You can get it from Xcode (it's the name of the profile you used to compile) or using the iPhone Configuration Utility App http://support.apple.com/kb/DL1465

like image 153
Michaël Azevedo Avatar answered Sep 23 '22 15:09

Michaël Azevedo