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.
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"
}
I also met this problem.
export_xcargs "-allowProvisioningUpdates"
works for me.
Please go here for detailed information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With