Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Requires a provisioning profile with the Push Notifications feature [duplicate]

Tags:

xcode

ios

cordova

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.

I googled but i didn't find anything helpful.

Solution:

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

Tested and it works.

like image 572
Tadej Avatar asked Sep 22 '17 07:09

Tadej


2 Answers

If you are using fastlane for 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.

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

fastlane_version "2.58.0"

It will then correctly generate values like:

{
  "provisioningProfiles": {
    "com.name.app": "App name"
  },
  "method": "app-store",
  "teamID": "ABCDEF31593"
}
like image 135
CodeReaper Avatar answered Nov 16 '22 02:11

CodeReaper


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

like image 22
Chao Avatar answered Nov 16 '22 04:11

Chao