On 2020-11-24 14:19, Ian MacArthur wrote:Indeed, it would be handy to know if a fat-binary (including an arm M1 binary) can be built entirely on an x86_64 host, since that would go a long way to address the issues that David (w1hkj) is having I imagine. I can’t test this myself (as far as I know) because my very newest Mac is now Too Old...
If I recall correctly from the PowerPC days, we could build intel binaries on the older PPC platform if we installed the proper intel Xcode options or whatever it was then. I built fat binaries for many years until it was obvious PPC was dead and gone, which pretty much happens the moment the web browsers stop supporting it, and important websites stop supporting those old browsers..
Meh, I was in a rush with my reply above; small fixes
for clarity in green..
I note the OP says the built natively on the M1, and it worked, but it was not clear to me if the fat-binary was created on the M1 ARM, or on the x86_64, or perhaps the two binaries were compiled natively then copied to one host for lips to do its magic?
Indeed, it would be handy to know if a fat-binary (including an arm M1 binary) can be built entirely on an x86_64 host, since that would go a long way to address the issues that David (w1hkj) is having I imagine.
Some more details: I'm building two standalone application bundles, one on my Intel Mac running Catalina, the other on the ARM Mac. I then copy the binary from the app bundle (xxx.app/Contents/MacOS/) on the ARM Mac to the Intel Mac where I use lipo to create a universal binary as explained before. This universal binary is then placed in the app bundled, replacing the existing Intel binary. I then sign and notarize this app bundle.
Indeed, it would be handy to know if a fat-binary (including an arm M1 binary) can be built entirely on an x86_64 host, since that would go a long way to address the issues that David (w1hkj) is having I imagine.As my Intel Mac is from 2012 and runs only Catalina, I haven't tried this. It should be possible as XCode 12.2 runs on Catalina, but I don't want to change my working scripts. You know: Never change a running system. :-)Building on a single system would only save copying and pasting some simple command line commands, so I don't want to mess around with it.
Really I was just wondering how well the fat-binary process would work for those who only have an Intel Mac at present.
Like me: but mine is Too Old (10.13) which I do not think can support a "recent enough" Xcode to even try...