Ios – App rejected: Missing Info.plist key “NSBluetoothPeripheralUsageDescription” but framework is not present

cordovaiosxcode

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.

Best Answer

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