Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App rejected: Missing Info.plist key "NSBluetoothPeripheralUsageDescription" but framework is not present

Tags:

xcode

ios

cordova

I have a Cordova app that runs in iOS phones. I'm trying to send an update of this app to App Store, but it is being rejected. Firstly it was rejected because the info.plist contained a line with the key NSBluetoothPeripheralUsageDescription and this feature is never used in my app. To solve this problem I removed this line from info.plist and the respective framework from Linked Frameworks and Libraries in xCode (the framework CoreBluetooth.framework and the line NSBluetoothPeripheralUsageDescription was added by Cordova Diagnostic Plugin), as can be seen in the image below: Linked Frameworks and Libraries

However now I'm receiving a e-mail from iTunes Connect saying this:

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothPeripheralUsageDescription key with a string value explaining to the user how the app uses this data.

But I removed the CoreBluetooth.framework from the xCode project...

My question is: I need to remove this framework from another place? Are some other framework able to use bluetooth causing this problem?

Thanks for help.

like image 992
Bruno Peres Avatar asked May 16 '17 14:05

Bruno Peres


2 Answers

Open Info Plist file and press on + sign add new key in info.plist of your project and add this NSBluetoothPeripheralUsageDescription and write value "Explain the reasons for bluetooth"

Check Screen shot below enter image description here

like image 180
Jignesh Mayani Avatar answered Oct 28 '22 12:10

Jignesh Mayani


It appears that you cannot have a generic text string like:

We need access to your bluetooth connection.

I had something like this and got rejected. When I had a more detailed description like:

We need access to your bluetooth connection to upload data from your device for crash reports.

I was approved.

like image 44
D. Rothschild Avatar answered Oct 28 '22 10:10

D. Rothschild