App ID with identifier not available when turning on remote notification

故事扮演 提交于 2019-12-08 11:31:40

问题


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.

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.

Also under the General tab:

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.


回答1:


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




回答2:


I think you need to create the SSL certificates and set up a provisioning profile matching your needs. Assuming you already have an development provisioning profile for your app-id you just need to add the SSL certificate for development. When done testing add the certificate for production.



来源:https://stackoverflow.com/questions/36569548/app-id-with-identifier-not-available-when-turning-on-remote-notification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!