iosxcode

How to include the UIBackgroundModes entitlement into Provisioning profile?


I am facing such error:

"Automatic signing failed Xcode failed to provision this target."

"Provisioning profile "iOS Team Provisioning Profile: org.reactjs.native.example.hmp-wheels" doesn't include the UIBackgroundModes entitlement."

Error from xcode: enter image description here

https://developer.apple.com/account/resources/identifiers has no "UIBackgroundModes entitlement" therefore I physically can't enable it. Left image on screenshot is from xcode, right from the website. The item is missing on the website

Screenshot: enter image description here

xcode: enter image description here

So my question is how to solve such problem? Manual signing gives no effect. But "Push Notifications" when added in xcode was successfully checked in "Capabilities" section on https://developer.apple.com/account/resources/identifiers.

Thank you.

[upd1] enter image description here


Solution

  • After days of trying I managed to solve the problem. Removed all capabilities, cleaned abandoned ones in file .entitlements with key UIBackgroundModes, cleaned xcode cache, build cache and restarted cxcode. Enabled all back again and the error is gone. Apple developer support could not help either. Unexplainable error that should not have happened.