> but Apple tightly controls their entire stack
More like Apple wants you to use their computers. If it was legal I'm sure Microsoft would have figured out how to compiler iOS apps in Visual Studio. It's not magic, it's just obscured and prevented through legalese.