iOS In App Purchase capabilities says: "An App ID with Identifier 'com.example.App' is not available"

StackOverflow https://stackoverflow.com/questions/20192384

Question

I have created an iOS App ID in iOS Dev Center under Certificates, Identities, and Profiles and enabled it for In-App-Purchases. Let's say its name is App and the id is com.example.app.

If I view the corresponding app's In-App Purchase capabilities in Xcode 5.0.2 the tool indicates an error and offers to "Add the In App Purchase entitlement to Your App ID" in the form of a "Fix Issue" button. If I press the button I receive this error message:

An App ID with Identifier 'com.example.App' is not available. Please enter a different string.

How can I overcome this problem? The identifier com.example.App seems to be derived from the targets bundle identifier, whose suffix seems in turn derived from the project name. Those should not change.

And why does Xcode not pick up the existing App ID that I've already created in iOS Dev center. It spells app in lower case, but I understand that shouldn't matter, and in any case it does not seem to be possible to replace it with an upper-case version because this would require deletion of an app id first, which seems impossible.

So how can I fix the issue in Xcode (e.g. by directly editing capabilities) and what is the recommended workflow between Xcode and iOS Dev Center for adding capabilities in the first place?

Was it helpful?

Solution

Just specify proper identifier in plist with out appending project name on that,

and make sure you are logged in from correct account.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top