---
title: locationUnauthorized
framework: arkit
role: symbol
role_heading: Type Property
path: arkit/arerror/locationunauthorized
---

# locationUnauthorized

An error that indicates the app lacks user permission for the device’s current location.

## Declaration

```swift
static var locationUnauthorized: ARError.Code { get }
```

## Discussion

Discussion To resolve this issue, the app needs to ask the user to enable location access for this app in Settings.

## See Also

### Identifying an error cause

- [ARError.Code](arkit/arerror/code.md)
- [requestFailed](arkit/arerror/requestfailed.md)
- [cameraUnauthorized](arkit/arerror/cameraunauthorized.md)
- [fileIOFailed](arkit/arerror/fileiofailed.md)
- [insufficientFeatures](arkit/arerror/insufficientfeatures.md)
- [invalidCollaborationData](arkit/arerror/invalidcollaborationdata.md)
- [invalidConfiguration](arkit/arerror/invalidconfiguration.md)
- [invalidReferenceImage](arkit/arerror/invalidreferenceimage.md)
- [invalidReferenceObject](arkit/arerror/invalidreferenceobject.md)
- [invalidWorldMap](arkit/arerror/invalidworldmap.md)
- [microphoneUnauthorized](arkit/arerror/microphoneunauthorized.md)
- [objectMergeFailed](arkit/arerror/objectmergefailed.md)
- [sensorFailed](arkit/arerror/sensorfailed.md)
- [sensorUnavailable](arkit/arerror/sensorunavailable.md)
- [unsupportedConfiguration](arkit/arerror/unsupportedconfiguration.md)
