I am trying to write a WatchOS app that runs as a Bluetooth central in the background. I added 'UIBackgroundModes' value 'bluetooth-central' but when I try to upload to TestFlight I get an error:
"Missing entitlement. watchOS extension '<my app name>' uses 'UIBackgroundModes' value 'bluetooth-central' without the required entitlement 'com.apple.developer.bluetooth-central-background' signed into the bundle."
I tried adding this entitlement manually as it wasn't in the available list but then XCode complains it can provision with that entitlement in there.
Has anyone successfully made this work or does CoreBluetooth just not work in the background for WatchOS?
Thank you for your time.
Did you manage to resolve this? I'm encountering the same error when I upload my app to Testflight.