I have M1 machine, I have one project that I only need Rosetta to run it, instead of toggle it on/off from Xcode get info menu
I tried to run the command:
arch -x86_64 open ~<PROJECTNAME>.xcodeproj
but the project failed to build each time.
Can someone help me with a command to build the project from command line in Rosetta mode,
Keep two copies of Xcode and keep one of them in Rosetta mode. You might even name it Xcode-Rosetta so you know which is which.
That way there's no need to turn Rosetta on and off for the same app.