---
title: "unarchiveObject(withFile:device:)"
framework: metalperformanceshaders
role: symbol
role_heading: Type Method
path: "metalperformanceshaders/mpskeyedunarchiver/unarchiveobject(withfile:device:)"
---

# unarchiveObject(withFile:device:)

## Declaration

```swift
class func unarchiveObject(withFile path: String, device: any MTLDevice) -> Any?
```
