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.