I'm aware signing in to an Apple ID on a macOS Virtual Machine is not supported, unfortunately. But is there a way to download Xcode from within the VM? I know the developer website used to have links where you could directly download Xcode outside the Mac App Store but I can't seem to find it?
Is it Possible to Download Xcode from macOS Virtual Machine?
Okay so I found it. if you go to Xcode on the developer site if you click "Download" it'll send you to the Mac App Store. But if you choose "Xcode Beta..." it'll take you to the Downloads page where you can download it directly from the website.