<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLFunctionOptions/failOnBinaryArchiveMiss",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLFunctionOptions@MTLFunctionOptionFailOnBinaryArchiveMiss"
  },
  "title" : "failOnBinaryArchiveMiss"
}
-->

# failOnBinaryArchiveMiss

An option that instructs the compiler to return an error when a GPU function isn’t in a binary archive.

```
static var failOnBinaryArchiveMiss: MTLFunctionOptions { get }
```

## Discussion

By default, Metal compiles a function if it isn’t in a binary archive.
When you set this option, Metal returns an error instead of compiling a missing function.

Setting this option is a way to verify that binary archives contain all the functions your app needs,
or to measure a binary archive’s hit rates.

---

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)