Category filter

Script to install Rosetta 2 on Mac devices with Apple silicon

Apple’s transition from Intel-based processors to Apple silicon brought about many changes to the Mac environment. One of them was that the apps designed and developed for Intel-based processors would no longer run on the Macs with Apple silicon chips. Rosetta 2 is a translation process introduced by Apple to ease this transition, enabling Intel-based software applications to run on Mac computers with Apple silicon.

Rosetta does not come pre-installed on Macs with Apple silicon. However, the system will prompt the user to install Rosetta whenever the user opens an Intel-based installer package. Using Hexnode’s Execute Custom Script action, you can remotely deploy the custom script provided below to install Rosetta 2 across your macOS endpoints.

Disclaimer:


The Sample Scripts provided below are adapted from third-party Open-Source sites.

Install Rosetta on Apple silicon Mac

The above script will execute the following in order:

  • Check the architecture of the macOS Device.
  • If the Mac runs on Apple silicon, the script checks if Rosetta is installed.
  • If Rosetta is not installed, it is installed silently.

Suppose a binary executable for an application contains instructions for both Intel-based processors (x86_64 instructions) and Apple silicon (arm64 instructions). In that case, the system will prefer to execute the app’s arm64 instructions on Apple silicon Macs. However, the user can configure the app to launch using Rosetta translation by checking the ‘Open using Rosetta’ option in the app’s Get Info window so that the app can run older plug-ins that don’t yet support the arm64 architecture.

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository