ios - 证书中的 Bundle ID 与您输入的 Bundle ID 不匹配

标签 ios xcode firebase app-store-connect firebase-console

当我尝试为云消息传递上传证书时,我的证书 Bundle ID 与在 Firebase 控制台中输入的 Bundle ID 不匹配。我收到错误:

The Bundle ID in the certificate does not match the Bundle ID you entered.

我的问题是,在 Xcode、Apple Developer Portal 和 Firebase Console 中匹配项目 Bundle ID 的最佳方式是什么?我是否在 iTunes Connect 中创建一个新应用程序然后生成新证书?我可以在 Firebase 控制台或 Apple Developer Portal 中更改 Bundle ID 吗?或者我是否可以像在我的 Firebase 控制台中那样简单地使用匹配的包 ID 创建新证书,而无需在 iTunes Connect 中创建新应用程序?

最佳答案

Firebase documentation regarding certificates具有误导性。在第 8 步的 Configure an App ID for Push Notifications 部分中,它告诉您展开箭头并导出私钥。不要这样做,只需将证书本身(即在私钥上方的行)导出为 .p12 即可。

关于ios - 证书中的 Bundle ID 与您输入的 Bundle ID 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41945943/

相关文章:

javascript - Firebase UID 总是 28 个字符吗?

ios - 使用#define 变量创建 NSNumber

ios - 是否有委托(delegate)方法或其他标准方法来促进自定义 UITableView 单元格的编辑?

java - 使用 google 的 Firebase UI 身份验证失败并显示消息(代码 :10 message:10)

ios - 了解task_basic_info任务resident_size

ios - 如何使用CollcetionViewCell内的按钮删除单元格本身

javascript - 与 firebase react native 平面列表

ios - 使用 NSFetchedResultsController 时出现奇怪的删除行为

ios - Removed Entity 再次被 MagicalRecord 中的 findFirstByAttribute 找到

ios - awsmobilehub 和 cocoapods 集成