Zac B
Zac B

Reputation: 4232

How does "arch -arch" work to enable Rosetta and force binary architecture?

When using Rosetta on macOS running on an ARM processor, the arch command can be used to force a wrapped command to execute as a specific architecture. In other words, arch -arch x86_64 mycommand will try to launch mycommand as an x86/Intel program. If mycommand is ARM-only, it will fail; if mycommand is a universal binary, it will be run as x86.

But how does the arch -arch ... command actually work? Specifically, I have these questions:

I'm asking this out of curiosity, not because I need to get around what arch does.

I've tried:

Upvotes: 2

Views: 384

Answers (0)

Related Questions