How can I test a MacOS app on a specific version?

511 Views Asked by At

How can I test a MacOS app on a specific version?

I need to start the app on High Sierra and I have Catalina. It does not work as for iPhone simulators

once the app is started, a user receives this in the logs

 in  /var/log/messages 

com.apple.xpc.launchd[1] ("bundle"[2956]). Service exited due to signal: illegal instructio: 4 sent by exchandler[0].

no problem on Mojave and above

I have searched everywhere but have not found an answer

thanks

1

There are 1 best solutions below

3
On

From the Apple Developer Forum:

The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions. -mmacosx-version-min tells the tools what OS versions you need to work with, so the tools can disable optimizations that won't run on those OS versions. If you need to run on older OS versions then you must use this flag.

"The downside to -mmacosx-version-min is that the app's performance may be worse on newer OS versions then it could have been if it did not need to be backwards-compatible. In most cases the differences are small.

The place to put this flag is under “Other Linker Flags” in the project’s build settings, e.g. -mmacosx-version-min=10.10.

from this answer