Why stop at xcode?
Add a licensing fee for UIKit, Core Data, Core Text, Core Audio, Core Graphics, Metal, Network, SwiftUI, Quartz and all the other libraries apps use constantly.
Heck, why not for the OS itself? If you don't want to pay, they could conceivably dump you into an isolated VM and force you to write your own OS and userspace device drivers.
> Heck, why not for the OS itself?
We used to pay for OSes and OS upgrades. Heck, you still have to pay for Windows.