---
title: "makeArchive(url:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtldevice/makearchive(url:)"
---

# makeArchive(url:)

Creates a new archive from data available at an NSURL address.

## Declaration

```swift
func makeArchive(url: URL) throws -> any MTL4Archive
```

## Parameters

- `url`: An NSURL instance that represents the path from which the device loads the doc://com.apple.metal/documentation/Metal/MTL4Archive.

## Return Value

Return Value A MTL4Archive instance, or nil if the function failed.
