Only the ‘shell’; not all the rest that make it practical. There are a lot of blog posts (a yearly one here) of people trying to code on iPads; they all end badly because Apple allows nothing. It’s fenched off. Nothing to do with lack of incentive to port Xcode; there are plenty of code apps on iPad, they just cannot run real envs (docker, anything other than toy interpreters etc) without rooting.