Reputation: 3952
I am trying to create an ad-hoc distribution for my IOS app. When I go: XCODE > Menu > Product > Archive, this completes successfully but the 'Export' button is disabled with the message below: "Distribution Required Enrollment in the Apple Developer Program".
I must have missed out a step in registering or some setting. Can enyone help figure out what I've done wrong. This is what I have...
I joined the Apple Developer Program. And in the Apple Member Centre:
Under Certificates (https://developer.apple.com/account/ios/certificate)..
Under Identifiers > APP IDs...
Under Devices...
Under Provisioning Profiles...
Within XCode...
Menu > xcode > Prefs > Apple ID > my apple developer id is listed, and it contains..
In xcode, when I have the .xcodeproje file selected, in the middle window, I have...
And when I press the 'run' button with my iPad selected, the app builds and launches on my iPad without problems. However if I select: Team MyCompany name, and try to build, I get "App installation failed. The app could not be verified". (So I dont use this account).
I must admit I dont understand why MyName and MyCompany name are listed and what the difference is. And I dont understand what xcode is creating and if I maybe have to download some certificate or something for xcode to use.
Also I used cordova to create the app.
Upvotes: 1
Views: 5920
Reputation: 4760
Another possibility for some:
If you don’t belong to the Apple Developer Program, a personal team appears.
Basically go and register for the Apple Developer Program here: https://developer.apple.com/programs/enroll/
Upvotes: 1
Reputation: 22248
I just changed "Development Team" of project and target from "My Name (Personal Team)" to "My Name" and Export button enabled!
Upvotes: 0
Reputation: 11928
You can't export under your personal team. You need to use the company account and fix your 'installation failed' issue.
Try deleting the app off the device you're trying to run it on. If it was installed under a different provisioning profile, such as your personal team one, then Xcode may not be able to overwrite the current version of your already installed app with the new one with the new profile from your company. So delete it and try running again.
Upvotes: 5