---
title: "installRosetta(completionHandler:)"
framework: virtualization
role: symbol
role_heading: Type Method
path: "virtualization/vzlinuxrosettadirectoryshare/installrosetta(completionhandler:)"
---

# installRosetta(completionHandler:)

Starts the installation of Rosetta.

## Declaration

```swift
class func installRosetta(completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
class func installRosetta() async throws
```

## Parameters

- `completionHandler`: The completion handler the framework invokes after the request finishes processing.

## Discussion

Discussion The completion handler returns an error object that contains information about a problem, or nil if the installation completed successfully.
