I think that you activated the push notification in the application ID, but you did not create a provisioning profile for this application identifier, so Xcode automatically selects the provisioning profile and this initialization file does not support push notification capabilities, so try creating a provisioning profile for this application identifier and download it, then double click on it to listen in Xcode, try restarting Xcode, hope this help helps you.
Hosny source share