Rosetta 2 in CI pipelines: find the Intel-only tools before macOS 28
Apple says general Rosetta support ends after macOS 27, and Xcode 27 already runs only on Apple silicon. Here is how to install Rosetta unattended on a build Mac, find translated tools and retire them.

A CI job that passes on one Apple silicon Mac and fails on a fresh one often has a simple cause: an Intel-only tool that needs Rosetta, which is installed separately. Here is how to install it unattended, spot translated tools and plan for the end of general support.
What Rosetta is, and the macOS 28 timeline
Rosetta is Apple's translation layer for running Intel-based apps on Macs with Apple silicon. Apple's support page Using Intel-based apps on a Mac with Apple silicon says Rosetta is available on any Mac with Apple silicon using macOS 27 or earlier. Starting with macOS 28, Apple says Rosetta functionality will be available only for certain older, unmaintained games that rely on Intel-based frameworks. It advises replacing Intel-based apps with Universal or Apple silicon versions and updating Intel-based plug-ins.
Apple's developer article on the Rosetta translation environment adds two points that matter on build machines: Rosetta does not translate kernel extensions or virtual machine apps that virtualize x86_64 platforms, and one process cannot mix arm64 and x86_64 code, including the modules it loads. Apple's guide to building a universal macOS binary lists build tools and command-line tools among the code to make Universal.
Installing Rosetta without a prompt
A desktop Mac may prompt to install Rosetta when an Intel-based app opens; a headless runner has nobody to click Install, so provision it in your image or setup script. Apple's support page lists this Terminal command:
softwareupdate --install-rosetta
For unattended installs, add a licence flag:
softwareupdate --install-rosetta --agree-to-license
That flag is not on Apple's support page, but the softwareupdate man page documents it as agreeing to the licence without user interaction, and says the tool needs admin authentication for every command except --list. Check man softwareupdate on your macOS version and test the exit status on your image.
Detecting architecture problems
Start with the shell: in a native shell on Apple silicon, uname -m and a bare arch normally report arm64, so an Intel result suggests the terminal or CI agent runs under translation. An "Open using Rosetta" option in some Universal apps' Info window, Apple's support page notes, forces the app to run as an Intel-based app; check it on apps that start your jobs. Apple's developer article also documents a sysctl.proc_translated flag: 1 in a translated process, 0 in a native one.
For binaries, Apple's universal binary guide points to lipo or file, run on the executable itself, such as the file in an app's Contents/MacOS/ folder.
uname -m
arch
sysctl -n sysctl.proc_translated
file "$(command -v ruby)"
lipo -archs "$(command -v node)"
lipo "$(command -v node)" -verify_arch arm64
lipo -archs prints only architecture names, which suits scripts; with -verify_arch, lipo exits with status 0 only if every named architecture is present. On Apple silicon, an x86_64-only binary must run under Rosetta.
To reproduce a failure, run a universal binary as each architecture, as the arch man page describes:
arch -arm64 uname -m
arch -x86_64 uname -m
The second needs Rosetta. A step that succeeds as one architecture and fails as the other is architecture-dependent.
Common offenders in CI
Patterns to check, not a list of affected versions:
- Ruby gems with native extensions. CocoaPods is built with Ruby, says its getting-started guide, and a native Ruby cannot load an
x86_64-only extension. Under a native Ruby,gem pristinerebuilds extensions;--extensionslimits it to gems that have them. - Prebuilt libraries without an Apple silicon simulator slice. Apple's TN3117 allows excluding
arm64for the simulator SDK withEXCLUDED_ARCHSonly while waiting for a vendor update, using Rosetta simulator destinations. A project still carrying that setting depends on Rosetta. - Legacy Docker images. Docker's multi-platform guide says a
linux/amd64container cannot run on an arm64 host without emulation, and Docker Desktop has a setting to use Rosetta for x86_64/amd64 emulation on Apple silicon. If your runners use it, that is a Rosetta dependency. - Node native modules. Compiled add-ons follow the same one-architecture-per-process rule. npm documents
npm rebuildfor recompiling C++ add-ons; clear the dependency cache when the runner type changes.
A cache key that omits the architecture can hand a runner an artefact built for the other one; it looks fine until something loads it. On GitHub Actions, the runner.arch context, with values such as X64 or ARM64, can go into the key.
Build settings versus translated tools
Two questions are easy to confuse. The first is what code your project produces: Xcode's build settings reference defines ARCHS as the architectures the product is built for, with more than one producing a universal binary, and ONLY_ACTIVE_ARCH as building only the active one, which TN3117 lists as on for Debug and off for Release by default. The second is which architecture the build tools run as.
Xcode 27's release notes say it installs and runs only on Apple silicon Macs, and that ARCHS_STANDARD drops x86_64 for macOS deployment targets of 27.0 or later, though x86_64 can be added to ARCHS. Intel development, Apple adds, remains possible on macOS versions that support Rosetta, such as macOS 27.
Fixing one side does not fix the other: setting ARCHS will not remove a dependency on a translated script, and installing Rosetta will not make your app Universal. Check the built product and the tools separately before editing project files.
A practical audit
- Print
uname -m,archandsysctl -n sysctl.proc_translatedat the top of every job log. - Run
lipo -archsorfileon each tool the job calls; recordx86_64-only results. - Run the job once on a fresh machine without Rosetta; the failures are your dependency list.
- Search project files for
EXCLUDED_ARCHSand hard-codedARCHSvalues. - Replace or update each Intel-only tool, then strike it off.
- Put the architecture in cache keys and image tags.
Sources
- Apple Support: Using Intel-based apps on a Mac with Apple silicon
- Apple Developer: About the Rosetta translation environment
- Apple Developer: Building a universal macOS binary
- Apple Developer: Xcode 27 Release Notes
- Apple Developer: Build settings reference
- Apple Developer: TN3117, Resolving architecture build errors on Apple silicon
- softwareupdate(8) man page (mirror of the macOS manual pages)
- arch(1) man page (mirror of the macOS manual pages)
- lipo(1) man page (mirror of the macOS manual pages)
- sysctl(8) man page (mirror of the macOS manual pages)
- CocoaPods Guides: Getting Started
- RubyGems Guides: Command Reference, gem pristine
- Docker Docs: Multi-platform builds
- Docker Docs: Change your Docker Desktop settings
- npm Docs: npm-rebuild
- GitHub Docs: Contexts reference


