Hacker News new | ask | show | jobs
by lights0123 2045 days ago
Huh, so Apple is installing both the ARM and x86 version of apps, even on ARM computers. I guess that makes sense for portability, but I don't know if other parts of the root filesystem are one architecture only, such as the path to the kernel (unless that's a fat binary too?).
5 comments

In the PPC -> x86 transition, the same hard drive could be used to boot both PPC and x86 Macs (e.g. via target disk mode or external HDDs)
That remains true today.
What is the binutil to strip the x86? Is it still this command? http://hints.macworld.com/article.php?story=2005081011242266...

--edit-- Sweet it works.

cd /Applications; ditto --rsrc --arch arm64 GarageBand.app GarageBand-arm64.app

Everything Apple’s responsible for is a Universal (or fat) binary.

You can boot either architecture from a Big Sur drive.

The kernel is multiple files. There’s “kernel” for Intel Macs, “kernel.release.t8020” for DTK users, and “kernel.release.t8101” for the M1.
I good case where this would be necessary is if anything has in process plugins - I saw at least one review where the person had to restart their app (final cut maybe?) because the codec was an x86 binary - which it seemed to do more or less automatically.