There are many threads out there on challenges installing Xcode esp via VPP where due to its size some kind of timeout or download interrupt occurs. In my org we've had better success grabbing the xip from the Apple developer site and redistributing / unpacking that to clients. Not pretty, very space consuming (you'll want upwards of 40GB free just in case) and manage users' expectations to have a LOT of patience.