---
title: MTLBinaryArchiveError.Code.compilationFailure
framework: metal
role: symbol
role_heading: Case
path: metal/mtlbinaryarchiveerror-swift.struct/code/compilationfailure
---

# MTLBinaryArchiveError.Code.compilationFailure

An error code that indicates the archive’s inability to compile its contents, typically when serializing it to a URL.

## Declaration

```swift
case compilationFailure
```

## See Also

### Error codes

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