I wrote a very simple C program and my goal is to build an x86-only binary and then run that binary on an Apple Silicon Mac and have Rosetta 2 translate it into a Universal 2 binary. I want to look at the Rosetta 2-translated binary specifically; I'm not looking to build a Universal 2 app myself (that would be trivial).
I attempted to run the program through Terminal ($ ./helloworld
) and even stick it inside of a .app
, put it in the Applications folder, and double-click it. In both cases, the program runs correctly, but according to $ file helloworld
, the binary is still x86-only (Rosetta 2 didn't add an arm64 executable).
Any idea how to force Rosetta 2 to translate a binary?