They don't have to. People have been compiling to arm for years now on macOS. Apple just needs to make the standard + Foundation + Cocoa touch libraries visible and linkable on iOS and then you'll have everything you need to run any unix tools and compile iOS apps on iOS.