<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTExpectedFailure/Options/issueMatcher",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTExpectedFailureOptions(py)issueMatcher"
  },
  "title" : "issueMatcher"
}
-->

# issueMatcher

A block of code that determines whether the test issue fulfills the expected failure.

iOS, iPadOS, Mac Catalyst, tvOS, visionOS, watchOS:

```
var issueMatcher: (XCTIssue) -> Bool { get set }
```

macOS:

```
var issueMatcher: (XCTIssueReference) -> Bool { get set }
```

## Discussion

Provide code to examine the issue and respond with a Boolean value indicating whether the issue fulfills the expected 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)