推送通知的证书和配置文件

Certificates and Provisioning Profiles for Push Notifications

我在处理过程中遇到了问题。我收到了 Development 的推送通知。我 已经 阅读了多个指南和问题,并且出于某种原因 - 他们的指南在 iOS 8 中被弃用或者我的 Xcode 被窃听 - 我遇到了问题配置文件。

为了这个问题的目的,我已经概括了大部分隐私问题的术语。

我目前遇到了错误 - 无法对“App”进行代码签名。有一个 Fix Issue 按钮,但我确定我没有点击它;恐怕这只会让我的问题复杂化。

我已经按照 Parse iOS Notifications Guide 并根据指南配置了我的应用程序。我做了以下事情:

  1. 已从 Keychain Access
  2. 请求 certificateSigningRequest
  3. iTunes Connect 中创建了一个新的 App ID,带有新的捆绑包标识符。我确保进入我的应用程序中的 info.plist 以更改和匹配在 iTunes Connect 中创建的新 App ID
  4. 使用 iTunes Connect 中的新 App ID,我创建了 Production SSL 证书 .
  5. 将其安装到我的 KeyChain Access,并将其导出以上传到 Parse。

接下来,我将处理 Provision 配置文件。我再次进入 iTunes Connect,创建了一个新的配置文件,确保 link 正确的 bundle ID,并下载了它。

下面是可能搞砸了流程的部分。在 Parse Notifications Guide 中,他们指示用户双击下载的文件 - 在我的例子中,它被称为“AdHocDistribution.mobileprovisioning”,它将自己安装到 Xcode.

Download the generated provisioning profile from the next screen by selecting the "Download" button.

Install the profile by double-clicking on the downloaded file.

This should open Xcode's Organizer in the Devices pane. Your new provisioning profile should appear in the Provisioning Profiles section of your Library. Make sure that the status for this profile is "Valid profile". If the profile is invalid, make sure that your developer certificate is installed in your Keychain.

双击 mobileprovisioning 文件没有出现任何明显的反馈,告诉我它已安装。

最后,我修改了项目中的 code signing 字段和 target 的构建设置以匹配我下载的那个。

最后,我尝试 运行 应用程序,然后弹出错误。请帮忙!

使用来自 dev account.Download 的 ADHOC 创建应用程序的配置文件并将其拖到 Xcode,在您的屏幕截图中的配置文件下 select。 对 Target 和 project 做同样的事情,你就可以开始了!

P.S。也 select 团队作为您的开发帐户

请按照以下步骤操作..

  1. 检查所有目标的代码签名部分。像项目和测试目标。
  2. 检查所有 .Plist 文件中的项目 "identifier"。
  3. 在 Xcode 帐户部分添加帐户,选择: XCode-> Preference -> Account -> 点击 +sign 并添加你的苹果开发者账户。

希望对您有所帮助。