---
title: "locationManager(_:didFailRangingFor:error:)"
framework: corelocation
role: symbol
role_heading: Instance Method
path: "corelocation/cllocationmanagerdelegate/locationmanager(_:didfailrangingfor:error:)"
---

# locationManager(_:didFailRangingFor:error:)

Tells the delegate that the location manager couldn’t detect any beacons that satisfy the provided constraint.

## Declaration

```swift
optional func locationManager(_ manager: CLLocationManager, didFailRangingFor beaconConstraint: CLBeaconIdentityConstraint, error: any Error)
```

## Parameters

- `manager`: The doc://com.apple.corelocation/documentation/CoreLocation/CLLocationManager that corresponds to this delegate.
- `beaconConstraint`: The doc://com.apple.corelocation/documentation/CoreLocation/CLBeaconIdentityConstraint that describes the characteristics of the beacons the location manager is looking for.
- `error`: An doc://com.apple.documentation/documentation/Foundation/NSError object that describes the error.

## See Also

### Receiving beacon-related updates

- [locationManager(_:didRange:satisfying:)](corelocation/cllocationmanagerdelegate/locationmanager(_:didrange:satisfying:).md)
- [locationManager(_:didRangeBeacons:in:)](corelocation/cllocationmanagerdelegate/locationmanager(_:didrangebeacons:in:).md)
- [locationManager(_:rangingBeaconsDidFailFor:withError:)](corelocation/cllocationmanagerdelegate/locationmanager(_:rangingbeaconsdidfailfor:witherror:).md)
