---
title: "exportPackage(to:options:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdstage-4sfi1/exportpackage(to:options:)-6s2wk"
---

# exportPackage(to:options:)

Packages the stage into a USDZ archive.

## Declaration

```swift
func exportPackage(to url: URL, options: USDStage.ExportOptions = []) throws
```

## Discussion

Discussion The stage and its referenced assets are bundled into a USDZ file. Layer structure is preserved — this operation does not flatten. Throws an error if the extension is not .usdz.

## See Also

### Exporting the stage

- [exportPackage(to:options:)](usdkit/usdstage-4sfi1/exportpackage(to:options:)-2x7yr.md)
- [exportFlattened(to:)](usdkit/usdstage-4sfi1/exportflattened(to:)-98kpc.md)
- [exportFlattened(to:)](usdkit/usdstage-4sfi1/exportflattened(to:)-6717d.md)
- [USDStage.ExportOptions](usdkit/usdstage-4sfi1/exportoptions.md)
