gil_mo
gil_mo

Reputation: 625

Universal binary doesn't have "open using rosetta"

In Xcode 12, created a small universal app. The app "Get Info" shows two checkboxes: "Stationery pad" and "Locked", but not "Open using Rosetta", which I need.

I verified that the binary is universal (has two architectures: x86_64 and arm64).

Is there a hidden option or a info.plist flag I must enable for that?

Upvotes: 2

Views: 1111

Answers (1)

James Risner
James Risner

Reputation: 6076

To work around this for application development:

You will need to build with this Property List Key LSRequiresNativeExecution disabled.

An excerpt from the Apple Documentaion:

... this key prevents the system from using the Rosetta translation process to execute the Intel portion of a universal app on Apple silicon.

For command line programs you can simply do this:

arch -x86_64 /path/to/program

Upvotes: 2

Related Questions