Sorry, I canβt comment, so I want to clear my request.
My app should run in the background for push notification and location.
I faced the same problem and I canβt understand what is wrong with that.

thanks
Updated: Then I found that removing the "Location" attribute, which was manually added, was not required after adding to the features section. (For newer versions of Xcode, this provision is provided in the Features section in the background to configure that your application uses the background for location, push notification, etc.)
source share