---
title: compilationFailure
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtlbinaryarchiveerror-swift.struct/compilationfailure
---

# compilationFailure

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

## Declaration

```swift
static var compilationFailure: MTLBinaryArchiveError.Code { get }
```

## See Also

### Error codes

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