开启远程通知时带标识符的 App ID 不可用

App ID with identifier not available when turning on remote notification

我有一个刚刚提交到应用商店的应用。在开发人员门户中,它已选中推送通知,但尚未配置。

我想为这个应用程序添加推送通知功能。我尝试在 XCode 功能选项卡中打开推送。有一个问题,我按修复问题,它说 ID 不可用,尽管它是应用程序商店中已经可用的应用程序的 ID。

同样在“常规”选项卡下:

现在我该怎么做才能修复它?尽管已经阅读了 Ray Wenderlich 的 "iOS Code Signing: Under The Hood",但我仍然很头疼。

编辑:

好吧,接受的答案不是真的。我终于在Apple论坛的JRRevueltapost找到了这个问题的正确答案:

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.

显然这个问题最近才出现 Xcode。

我认为您需要创建 SSL 证书并设置符合您需要的配置文件。假设你已经有了你的应用程序 ID 的开发配置文件,你只需要添加用于开发的 SSL 证书。完成测试后添加生产证书。

检查以下步骤可能会解决您的问题:

  • 从开发人员门户中手动删除了由 Xcode 管理的无效 iOS 团队配置文件
  • 手动创建 iOS 开发人员配置文件
  • 通过Xcode
  • 下载

有关更多信息,您可以查看: 回答,这回答了您遇到的相同问题