<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRError/invalidEntitlement",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "s:SC11SRErrorCodeLeV18invalidEntitlementSoAAVvpZ"
  },
  "title" : "invalidEntitlement"
}
-->

# invalidEntitlement

Occurs when the app lacks the required entitlement.

```
static var invalidEntitlement: SRError.Code { get }
```

## Discussion

To allow the app to read sensor data, the system requires that the app’s code signature contain a special entitlement. For more information, see [Configuring your project for sensor reading](/documentation/SensorKit/configuring-your-project-for-sensor-reading).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)