How to use SensorKit - entitlement needed to function

Hello,

I am trying to test the new SensorKit framework, but I'm facing a hurdle. I am getting this error:

Provisioning profile "iOS Team Provisioning Profile: ca.amrezo.TestApp" doesn't include the com.apple.developer.sensorkit.reader.allow entitlement.

I have the entitlement set up properly in the Entitlements file.

Thanks for your help.

I'm sorry I'm not sure, just getting into SensorKit, but how did you get the Entitlement file?
com.apple.developer.sensorkit.reader.allow is a special entitlement, one where Apple must explicitly grant you access to the entitlement. See this thread for more.

how did you get the Entitlement file?

Creating an entitlements file with this entitlement is easy; it’s just a property list. The problem being reported by amr_alrefae is because they don’t have a provisioning profile to allow them to sign an app with that entitlement. This is what makes the entitlement special. The entitlement must be allowed by a profile and the profile is created by the developer web site. If Apple hasn’t granted you access to the entitlement, you won’t be able to create such a profile.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"

The entitlement must be allowed by a profile and the profile is created by the developer web site. If Apple hasn’t granted you access to the entitlement, you won’t be able to create such a profile.

How do we go about obtaining that entitlement? The page Configuring Your Project for Sensor Reading still specifies

Request the App Entitlement
The OS requires a special entitlement in your app’s code signature to use SensorKit. The Apple developer website provides a form to request this entitlement for your app.

But the link just leads to the home page of the developer website. I am unable to find a form anywhere to request access to the entitlement.

To request the com.apple.developer.sensorkit.reader.allow entitlement, see https://www.researchandcare.org/resources/accessing-sensorkit-data . The article cited earlier will update soon to reflect this current process through Research & Care.

Hi All,

We are facing the same issue and can't figure it out! we get ": Fatal error: Sensor authorization failed due to: Error Domain=SRErrorDomain Code=4 "SRErrorPromptDeclined" UserInfo={NSLocalizedDescription=SRErrorPromptDeclined}" this error and wonder if you have resolve this issue?

Thanks,

How to use SensorKit - entitlement needed to function
 
 
Q