'How to default open an app by rosetta mode on Mac M1 after installation?

I developed a macOS application in Universal mode (with arm64 and x86_64), but some libraries are still in x86_64 architecture. Can I make my app run in x86_64 by default after installation? and how to do this? I know that the user has the option to run in rosetta mode in Application's Info, but I would like to know a way to set that by installation.



Solution 1:[1]

I haven't found a way to do that, but I think I can relaunch my application using arch -x86_64 to let my application in x86_64 mode.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kmzl