Post

Replies

Boosts

Views

Activity

Unable to request authorization for sensors using SensorKit
I am attempting to test out SensorKit in Xcode 12 Beta 3 and haven't been able to request authorization for a set of sensors using SRSensorReader.requestAuthorization(sensors:) - https://developer.apple.com/documentation/sensorkit/srsensorreader/3377656-requestauthorization. I've added keys to my Info.plist after seeing error messages that they were missing but I'm stuck on this one: [AuthorizationPrompt] Error Domain=SRErrorDomain Code=8197 "Your bundle's Info.plist must have an NSSensorKitUsageDetail key" UserInfo={NSLocalizedDescription=Your bundle's Info.plist must have an NSSensorKitUsageDetail key} I've added a (string) key for NSSensorKitUsageDetail but am still seeing this error. Does this key need to be a different type or am I missing something else or is this a bug?
1
0
923
Jul ’20