<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRSensorReaderDelegate/sensorReader(_:fetchDevicesDidFailWithError:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SRSensorReaderDelegate(im)sensorReader:fetchDevicesDidFailWithError:"
  },
  "title" : "sensorReader(_:fetchDevicesDidFailWithError:)"
}
-->

# sensorReader(_:fetchDevicesDidFailWithError:)

Provides the delegate a reason when the reader fails to fetch devices.

```
optional func sensorReader(_ reader: SRSensorReader, fetchDevicesDidFailWithError error: any Error)
```

## Parameters

`reader`

The reader that failed to fetch devices.

`error`

An object that describes the cause of failure.

---

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)