---
title: SRError.Code.invalidEntitlement
framework: sensorkit
role: symbol
role_heading: Case
path: sensorkit/srerror/code/invalidentitlement
---

# SRError.Code.invalidEntitlement

Occurs when the app lacks the required entitlement.

## Declaration

```swift
case invalidEntitlement
```

## 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

### Errors

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