<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCVASReaderSessionDelegate/readerSession(_:didInvalidateWithError:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "c:objc(pl)NFCVASReaderSessionDelegate(im)readerSession:didInvalidateWithError:"
  },
  "title" : "readerSession(_:didInvalidateWithError:)"
}
-->

# readerSession(_:didInvalidateWithError:)

Tells the delegate that the session become invalid and provides the reason.

```
func readerSession(_ session: NFCVASReaderSession, didInvalidateWithError error: any Error)
```

## Parameters

`session`

The reader session that calls this method.

`error`

The error indicating the reason for invalidating the session.

## Discussion

Your app should release any references it has to the reader session that called this method.

---

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)