Search code examples
iosxcodeprovisioning-profileapp-id

App ID with identifier not available when turning on remote notification


I have an app which I've just submitted to the app store. In the developer portal it has push notification checked, however it's not yet configured.

enter image description here

I want to add Push notification capability to this app. I try to turn on Push in XCode Capability tab. There was a issue and I press fix issue, it said the ID is not available, though it it the ID for the app already available in the app store.

enter image description here

Also under the General tab:

enter image description here

Now what do I do to fix it? Despite having read "iOS Code Signing: Under The Hood" from Ray Wenderlich I'm still having a headache.

EDIT:

OK the accepted answer wasn't really it. I finally found the correct answer to this question from JRRevuelta's post in the Apple forum:

Go to your Apple Developer "Certificates, Ids, Profiles", and under your App IDs list find the App ID in question and, If your App ID is in the form: com.myDomain.MyApp Then the name in your App ID record has to be: "XC com myDomain MyApp" Don't ask me why, but it works. (is the default name that XCode assigns when you create the record from XCode), but for records that exist prior or that you created directly in the Developer site, the name should be whatever you want... but its not. Some glitch introduced in one of the latest XCode releases.

Apparently this problem only surface in recent Xcode.


Solution

  • Check the following steps it may solve your problem:

    • manually removed INVALID iOS Team Provision Profile Managed by Xcode from Developer Portal
    • manually created iOS Developer Provision profile
    • Downloaded it via Xcode

    For more information you can check: https://stackoverflow.com/a/36175175/4557505 answer, this answers the same issue which you are having