error: exportArchive: “*.app” requires a provisioning profile with the Push Notifications feature.
Error Domain=IDEProvisioningErrorDomain Code=9 “”.app" requires a provisioning profile with the Push Notifications feature." UserInfo={NSLocalizedDescription=".app" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the “provisioningProfiles” dictionary in your Export Options property list.}
** EXPORT FAILED **
CordovaError: Promise rejected with non-error: ‘Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,.xcarchive,-exportOptionsPlist,exportOptions.plist,-exportPath,device’
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
This error is showing when running in vscode. If I manually add provisioningProfiles dictionary, when I build the app this dictionary automatically removed.