In my ios app with new Xcode 11 GM Seed 2 after deploy, apple returned error: ITMS-90683: Missing Purpose String in Info.plist with NSBluetoothAlwaysUsageDescription.
The problem is that I don't use bluetooth in my app. Or maybe I don't know about it. How can I find out why this permission purpose is needed?
I'm not using CoreBluetooth.framework
I've tried Maurice's answer, with and without
.framework
extension, but did not find any reference toCoreBluetooth
in my project. I also had previously inInfo.plist
file added: "Privacy - Bluetooth Peripheral Usage Description
", with String Value: "App would like to use your bluetooth for communication purposes"
". This didn't work either.Finally after seeing Chase Roberts's answer I added: "
NSBluetoothAlwaysUsageDescription
", with String value: "App would like to use your bluetooth for communication purposes
". After that this error was not shown again for my app while publishing.Note: In warning for error:
ITMS-90683
, for my app was said that delivery was successful, but I can if I wish to make changes in regard to stated issue.You should add both NSBluetoothPeripheralUsageDescription and NSBluetoothAlwaysUsageDescription to your Info.plist file. Your Info.plist file is located (by default) inside your prroject folder "Supporting Files" group and may be called something like {PROJECTNAME}-Info.plist. You have a couple of choices for adding it. One choice is to just editthe file from the command line using vim or whatever. Then add these lines:
The second choice is to double click that Info.plist file in XCode and use the "super helpful" XCode editor. This annoying editor does not actually have the NSBluetoothAlwaysUsageDescription in a dropdown list, you have to add it manually. Super helpful. Anyway there is a little plus button to the right of the Information Property List header, just click that. In step 1 you look for "Privacy - Bluetooth Peripheral Usage Description". That is the readable name for NSBluetoothPeripheralUsageDescription. Then just click on the value part at the right and enter your text, like "App would like to use your bluetooth for communication purposes" or watever. Once that is done, click that same plus button again and you will get the same drpdown list. Ignore that list and just paste the string NSBluetoothAlwaysUsageDescription there. Then click on the value to the right and paste "App would like to use your bluetooth for communication purposes".
If your app has a deployment target earlier than iOS 13, add the NSBluetoothPeripheralUsageDescription key to your app’s Information Property List file in addition to NSBluetoothAlwaysUsageDescription key as one or more of third party in your project uses bluetooth functionality.
I was able to snuff out CoreBluetooth usages by scanning for symbol usages, specifically looking for
CBCentralManager
. The script I wrote to do so:This will dig through the main binary + its included frameworks to find
CBCentralManager
references. Ex:./find-bluetooth-usages.sh /path/to/MyApp.app
Open your Info.plist and add a
NSBluetoothAlwaysUsageDescription
. You can do this in the editor by adding a line item like this:Or you can right click on the Info.plist and Open As -> Source Code and paste in the two appropriate lines as xml:
Apparently Apple has made some policy changes. Otherwise, it is weired to ask for non-used flags. It is very concerning. I also got my apps rejected for these reasons, all the while older versions are running without this.