针对 iOS 构建原生 Expo EAS,推送通知功能错误

问题描述 投票:0回答:1

我正在托管工作流程中工作,我使用以下方式构建我的

react native
应用程序:

  • eas build --platform iOS
  • 我使用本地凭据,因为我需要不是使用我的 Apple 开发者帐户而是为客户构建和签署包。因此,我用他的帐户创建了所有需要的证书,即配置文件分发证书
  • 我不需要或不想启用推送通知

我的

eas.json

{
    "cli": {
        "version": ">= 0.47.0"
    },
    "build": {
        "production": {
            "ios": {
                "credentialsSource": "local"
            },
            "android": {
                "credentialsSource": "local"
            }
        }
    },
    "submit": {
        "production": {}
    }
}

构建进展顺利,直到存档部分,我收到这些错误:

  • error: Provisioning profile "MyAppDistributionProfile" doesn't support the Push Notifications capability. (in target 'MyApp' from project 'MyApp')
  • error: Provisioning profile "MyAppDistributionProfile" doesn't include the aps-environment entitlement. (in target 'MyApp' from project 'MyApp')

我真的不知道该怎么办,也不明白如果:

  1. 我是否需要在 expo 配置文件中写入我不希望推送通知的位置?
  2. 我是否需要更改我的分发配置文件中的某些内容,也许使用一些不同的标志生成它?也许在展会构建中启用推送通知是强制性的?

我的个人资料

entitlements
没有人!):

ios react-native expo apple-push-notifications
1个回答
0
投票

我也有同样的问题。你找到问题的答案了吗?

© www.soinside.com 2019 - 2024. All rights reserved.