---
title: MTLBinaryArchiveError
framework: metal
role: symbol
role_heading: Structure
path: metal/mtlbinaryarchiveerror-swift.struct
---

# MTLBinaryArchiveError

An error that occurred when creating a binary shader archive.

## Declaration

```swift
struct MTLBinaryArchiveError
```

## Topics

### Error codes

- [none](metal/mtlbinaryarchiveerror-swift.struct/none.md)
- [invalidFile](metal/mtlbinaryarchiveerror-swift.struct/invalidfile.md)
- [compilationFailure](metal/mtlbinaryarchiveerror-swift.struct/compilationfailure.md)
- [unexpectedElement](metal/mtlbinaryarchiveerror-swift.struct/unexpectedelement.md)
- [internalError](metal/mtlbinaryarchiveerror-swift.struct/internalerror.md)
- [MTLBinaryArchiveError.Code](metal/mtlbinaryarchiveerror-swift.struct/code.md)

### Error domain

- [errorDomain](metal/mtlbinaryarchiveerror-swift.struct/errordomain.md)
- [MTLBinaryArchiveDomain](metal/mtlbinaryarchivedomain.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Structures

- [MTLTensorError](metal/mtltensorerror-swift.struct.md)
- [MTLCommandBufferError](metal/mtlcommandbuffererror-swift.struct.md)
- [MTLComponentTransform](metal/mtlcomponenttransform.md)
- [MTLCounterSampleBufferError](metal/mtlcountersamplebuffererror-swift.struct.md)
- [MTLDynamicLibraryError](metal/mtldynamiclibraryerror-swift.struct.md)
- [MTLIOError](metal/mtlioerror-swift.struct.md)
- [MTLPackedFloatQuaternion](metal/mtlpackedfloatquaternion.md)
- [MTLStitchedLibraryOptions](metal/mtlstitchedlibraryoptions.md)
- [NSDeviceCertification](metal/nsdevicecertification.md)
- [NSProcessPerformanceProfile](metal/nsprocessperformanceprofile.md)
