Build an iOS app on a Windows PC

I want to know if is possible to build an iOS app on a Windows PC and then play it in an iPhone to test it? If yes, could you explain how to?

You need a mac. Hackintosh should work. Couldn’t get it working in a VM.

Unity produces an Xcode project from its iOS build process, and Apple only support building apps to iOS devices via Xcode (Mac only).

Note that there is actually an open bug in AR Foundation where building iOS apps from Windows produces a corrupt Xcode project. The workaround is to use a Mac device for both Unity and Xcode.

@andyb-unity Is the bug fixed now? Can we generate a working xcode projects from windows in unity?

If your project uses AR Foundation Image Tracking or Object Tracking, no this issue is not fixed. Generally speaking though, yes Unity supports building Xcode projects on Windows.