Just as we lost MacOS when Apple switched from Motorola 68040 processors to PowerPC. And then we lost MacOS X again when Apple switched from PowerPC to Intel. No, wait a second, actually we didn't! MacOS X runs just fine on PowerPC and on Intel. And an ARM processor is much more similar to the Intel x86 processors than PowerPC is.
Now putting an ARM processor into an iMac doesn't make sense because the low power advantage doesn't count for much on a desktop processor, but if Apple wanted to create an ultra portable laptop with tremendous battery life by using ARM processors, there would be nothing stopping them.
Let me see...
Start XCode, open your project, open "Targets", click on your Target, Cmd-I for Info, and under the "Architecture" setting you add "arm". That's it. MacOS X is portable. For years when MacOS X ran on a PowerPC only, Apple had a secret project to make it work on Intel processors as well, and any Apple developer who wrote non-portable code got whacked over the head unless all code was portable. And all the external developers have learned how to write portable code as well. Today, any code that is written by a Macintosh developer with half a brain will work on any processor.