There are cloud services that let you rent virtual mac images by the hour. They are typically equipped with Xcode and everything one needs, because people rent them for that very purpose.
I'm not going to advertise any specific service here, but you should find plenty by entering something like "mac in a cloud" in Google.