By default, build specifications created under an Apple silicon target will only run on Apple silicon targets and not on Intel Macs.
Similarly, build specifications created under an Intel target will run on Intel Macs. Intel build specifications can run on Apple silicon Macs through Rosetta 2.
To create an application/shared library/build specification that can run on both Intel Macs and natively on Apple silicon
- Building the app for a Apple silicon target
- Building the app for an Intel Mac
- Manually copy the AppContents_arm64.llb from the Resources folder of the Apple Silicon built app/shared library to the same folder in the Intel version
- Alternatively, you could copy AppContents_x64.llb from the Intel version to the Apple Silicon version, as long as you end up with a Resources folder with .llbs from the build on both architectures.