---
title: failOnBinaryArchiveMiss
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtlfunctionoptions/failonbinaryarchivemiss
---

# failOnBinaryArchiveMiss

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

## Declaration

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

## Discussion

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.

## See Also

### Function compilation options

- [compileToBinary](metal/mtlfunctionoptions/compiletobinary.md)
- [pipelineIndependent](metal/mtlfunctionoptions/pipelineindependent.md)
- [storeFunctionInMetalPipelinesScript](metal/mtlfunctionoptions/storefunctioninmetalpipelinesscript.md)
- [storeFunctionInMetalScript](metal/mtlfunctionoptions/storefunctioninmetalscript.md)
