App ID with identifier not available when turning

2019-06-09 07:58发布

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.

2条回答
不美不萌又怎样
2楼-- · 2019-06-09 08:14

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.

查看更多
可以哭但决不认输i
3楼-- · 2019-06-09 08:21

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

查看更多
登录 后发表回答