I’m trying to enable Background Modes (specifically for audio, background fetch, remote notifications) in my iOS SwiftUI app, but I’m getting this error:
Provisioning profile “iOS Team Provisioning Profile: [my app]” doesn’t include the UIBackgroundModes entitlement.
On the developer website when I make the provision profile It doesnt give me the option to allow background modes. I added it to the sign in capabilities seccion in X code and matched the bundle ID to the provision profile and certificate etc but it still runs this error because the provision profile doesnt have the entitlements..
UIBackgroundModes
is an Info.plist
property, not an entitlement. It seems that you’ve added it to your .entitlements
file, and thus Xcode is trying to create a provisioning profile to authorise it’s use as an entitlement. That can’t possibly work.
Most folks manage this property via Xcode’s Signing & Capabilities editor, which knows that this is an Info.plist
property and does the right thing.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"