Problem with access to bluetooth

HI, i am new to IOS development. I work with Xcode 15.0, and IOS 17.0.3

I want to write an app to control a small robot using bluetooth. I get the following error message :

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.

However, in my infpo.plist, i have the following settings :

<dict>
	<key>NSBluetoothAlwaysUsageDescription</key>
	<array>
		<string>This application requires Bluetooth to connect to the roboter</string>
	</array>
	<key>UIApplicationSceneManifest</key>
	<dict>
		<key>UIApplicationSupportsMultipleScenes</key>
		<false/>
		<key>UISceneConfigurations</key>
		<dict>
			<key>UIWindowSceneSessionRoleApplication</key>
			<array>
			</array>
		</dict>
	</dict>
</dict>

The project section looks like this :

Any ideas ?

The Privacy string entry is malformed. It needs to by of type String with the value containing the sentence you want shown. The entry here is of type Array containing an item of type string, which is incorrect.

Problem with access to bluetooth
 
 
Q