---
title: invalidEntitlement
framework: sensorkit
role: symbol
role_heading: Type Property
path: sensorkit/srerror/invalidentitlement
---

# invalidEntitlement

Occurs when the app lacks the required entitlement.

## Declaration

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

## Discussion

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.

## See Also

### Identifying an Error Cause

- [promptDeclined](sensorkit/srerror/promptdeclined.md)
- [dataInaccessible](sensorkit/srerror/datainaccessible.md)
- [fetchRequestInvalid](sensorkit/srerror/fetchrequestinvalid.md)
- [noAuthorization](sensorkit/srerror/noauthorization.md)
