---
title: ARError.Code.locationUnauthorized
framework: arkit
role: symbol
role_heading: Case
path: arkit/arerror/code/locationunauthorized
---

# ARError.Code.locationUnauthorized

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

## Declaration

```swift
case locationUnauthorized
```

## Discussion

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

## See Also

### Errors

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