Yes, you need a Mac to run Xcode, as Xcode is only available on the macOS operating system.