I’m running into a strange compatibility issue with executables built using PureBasic on macOS.
I created an app on my MacBook Air i5 (Intel), and it runs perfectly both on that machine and on a MacBook Air M2 (Apple Silicon).
However, when I do the opposite — compile the same code on the M2 and try to run it on the MacBook Air i5 — I get the following error message:
It seems that the binary built on the M2 is ARM64-only, and the Intel Mac cannot execute it.“This application is not compatible with this type of Mac.”
Does anyone know how to build a universal binary (Intel + Apple Silicon) with PureBasic on macOS?
Is there any compiler flag or setting to generate both architectures?
Any help or workaround would be greatly appreciated!
System Info:
PureBasic (version 6.30B2)
MacBook Air i5 (Intel) with macOS Monterey 12.7.6
MacBook Air M2 (ARM64) with Tahoe 26.0.1