Question: can xcode run on windows 10?
Answer: You can't. Xcode only works on macOS. While you could technically install macOS under a Virtual machine under Windows 10, this would be an illegal violation of the licensing terms of macOS unless it is on Apple hardware.