<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZLinuxRosettaDirectoryShare/installRosetta(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZLinuxRosettaDirectoryShare(cm)installRosettaWithCompletionHandler:"
  },
  "title" : "installRosetta(completionHandler:)"
}
-->

# installRosetta(completionHandler:)

Starts the installation of Rosetta.

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

## Parameters

`completionHandler`

The completion handler the framework invokes after the request finishes processing.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)