<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocation",
  "identifier" : "/documentation/CoreLocation/CLLocationManagerDelegate/locationManager(_:didFailRangingFor:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Location"
    ],
    "preciseIdentifier" : "c:objc(pl)CLLocationManagerDelegate(im)locationManager:didFailRangingBeaconsForConstraint:error:"
  },
  "title" : "locationManager(_:didFailRangingFor:error:)"
}
-->

# locationManager(_:didFailRangingFor:error:)

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

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

## Parameters

`manager`

The [`CLLocationManager`](/documentation/CoreLocation/CLLocationManager) that corresponds to this delegate.

`beaconConstraint`

The [`CLBeaconIdentityConstraint`](/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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)