xcode 需要具有推送通知功能的配置文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46359496/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:16:51  来源:igfitidea点击:

Requires a provisioning profile with the Push Notifications feature

iosxcodecordova

提问by Tadej

After updating Xcode to version 9.0, i started getting this error: "Requires a provisioning profile with the Push Notifications feature." when building my iOS application with Cordova. My application and configurations have not changed since my previous build.

将 Xcode 更新到 9.0 版后,我开始收到此错误:“需要具有推送通知功能的配置文件。” 使用 Cordova 构建我的 iOS 应用程序时。自从我之前的构建以来,我的应用程序和配置没有改变。

I googled but i didn't find anything helpful.

我用谷歌搜索但我没有找到任何有用的东西。

Solution:

解决方案:

https://stackoverflow.com/a/46370957/7199922

https://stackoverflow.com/a/46370957/7199922

Tested and it works.

经测试,它有效。

回答by CodeReaper

If you are using fastlanefor your builds like me, I have found that there are a number of fastlane releases that does not generate exportOptions correctly, which causes Xcode to be unable to find a provisioning profile regardless of it is installed and correctly configured.

如果您像我一样使用 fastlane进行构建,我发现有许多 fastlane 版本无法正确生成 exportOptions,这会导致 Xcode 无法找到配置文件,无论它是否安装和正确配置。

I have found that version 2.58.0 of fastlane is working fine and have updated my Fastfilefiles to include the following line to ensure a high enough version on other machines too:

我发现 fastlane 的 2.58.0 版本运行良好,并更新了我的Fastfile文件以包含以下行,以确保在其他机器上也有足够高的版本:

fastlane_version "2.58.0"

It will then correctly generate values like:

然后它将正确生成如下值:

{
  "provisioningProfiles": {
    "com.name.app": "App name"
  },
  "method": "app-store",
  "teamID": "ABCDEF31593"
}

回答by Chao

I also met this problem. export_xcargs "-allowProvisioningUpdates"works for me. Please go herefor detailed information

我也遇到了这个问题。 export_xcargs "-allowProvisioningUpdates"对我来说有效。请到这里了解详细信息