uni-app iOS打包提示[Error] Provisioning profile doesn't support the Push Notifications [解决了]

uni-app iOS打包提示[Error] Provisioning profile doesn’t support the Push Notifications [解决了]

项目 信息
产品分类 HbuilderX
PC开发环境操作系统 Mac
PC开发环境操作系统版本号 12.1
HBuilderX版本号 3.99

操作步骤:

预期结果:

正常打包

实际结果:

Provisioning profile doesn't support the Push Notifications
Provisioning profile doesn't include the aps-environment
verifyPlistFiles failed

bug描述:

下载的Profiles 文件,有这个aps参数,下方是Apple开发者后台的Profiles 也有push相关的内容。也勾选了,为什么打包还是不行

请问是什么回事,怎么问题解决这个方法,感谢

按照这个bug解决,还是出现问题。https://ask.dcloud.net.cn/article/1088

打包失败,提示:

[Error] Provisioning profile doesn't support the Push Notifications
[Error] Provisioning profile doesn't include the aps-environment
[Error] verifyPlistFiles failed

解决方法: 多次测试,多次搞后,我把所有Apple后台相关的文件删除,然后再次所有生成一次,并且发现主要问题可能是通过这个mac生成的颁发的证书,所有生成Apple文件应该都用同一个CertificateSigningRequest.certSigningRequest 文件


更多关于uni-app iOS打包提示[Error] Provisioning profile doesn't support the Push Notifications [解决了]的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于uni-app iOS打包提示[Error] Provisioning profile doesn't support the Push Notifications [解决了]的实战教程也可以访问 https://www.itying.com/category-93-b0.html


在 uni-app 打包 iOS 应用时,如果遇到提示 Provisioning profile doesn't support the Push Notifications,通常是因为你的 Provisioning Profile(描述文件)没有启用推送通知(Push Notifications)功能。以下是解决该问题的步骤:


1. 检查 App ID 是否启用了 Push Notifications

  • 登录 Apple Developer 后台。
  • 进入 Certificates, Identifiers & Profiles > Identifiers
  • 选择你的 App ID,检查是否已启用 Push Notifications 功能。
    • 如果没有启用,点击 Edit,勾选 Push Notifications,然后保存。

2. 重新生成 Provisioning Profile

  • 在 Apple Developer 后台,进入 Certificates, Identifiers & Profiles > Profiles
  • 找到你的 Provisioning Profile,删除它(或让它失效)。
  • 点击 + 创建一个新的 Provisioning Profile,确保选择正确的 App ID 和证书。
  • 下载新的 Provisioning Profile,双击安装到 Xcode。

3. 检查 Xcode 配置

  • 打开 Xcode,选择你的项目。
  • 进入 Signing & Capabilities 选项卡。
  • 确保 Automatically manage signing 已启用。
  • 检查 Provisioning Profile 是否选择了最新生成的文件。
  • 添加 Push Notifications 能力:
    • 点击 + Capability,搜索并添加 Push Notifications

4. 重新打包

  • 在 uni-app 项目中,确保 manifest.json 中已正确配置推送通知权限。
  • 重新运行打包命令,例如:
    npm run build:ios
回到顶部