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

# MTLBinaryArchiveError.Code.invalidFile

An error code that indicates an app is using an invalid reference to an archive file, typically related to a URL.

## Declaration

```swift
case invalidFile
```

## See Also

### Error codes

- [MTLBinaryArchiveError.Code.none](metal/mtlbinaryarchiveerror-swift.struct/code/none.md)
- [MTLBinaryArchiveError.Code.compilationFailure](metal/mtlbinaryarchiveerror-swift.struct/code/compilationfailure.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.compilationFailure](metal/mtlbinaryarchiveerror-swift.struct/code/compilationfailure.md)
- [MTLBinaryArchiveError.Code.unexpectedElement](metal/mtlbinaryarchiveerror-swift.struct/code/unexpectedelement.md)
- [MTLBinaryArchiveError.Code.internalError](metal/mtlbinaryarchiveerror-swift.struct/code/internalerror.md)
