<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLPipelineOption/failOnBinaryArchiveMiss",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLPipelineOption@MTLPipelineOptionFailOnBinaryArchiveMiss"
  },
  "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: MTLPipelineOption { get }
```

## Discussion

By default, Metal compiles the functions for a pipeline state if they aren’t in a binary archive.
When you set this option, Metal returns an error instead of compiling a missing function.

---

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)