Build Godot iOS Games on Windows: Export Project to .ipa
Export from Godot as usual, then build it on Windows like any other iOS project.
Last updated
To build Godot iOS games on Windows, export the iOS project from Godot as usual. On Windows, Godot writes an Xcode project but no .ipa, so KXBuild builds the export folder like any Xcode project, installs it on your iPhone over USB for native debugging, and a Release build produces the .ipa. Your Godot project settings stay as they are, projects exported from Godot 4 work too, and GDScript keeps using Godot's own debugger.
How do I export an iOS project from Godot on Windows and open it?
1. Develop in Godot and export an Xcode project
Develop your project in Godot as usual. Download the export templates from Editor > Manage Export Templates, add an iOS preset in Project > Export, fill in App Store Team ID and Bundle Identifier (they must match the team and App ID of the provisioning profile in your keychain/ folder, or signing fails), and export to an empty folder outside the Godot project with a file name such as MyGame.ipa. On Windows, Godot writes the Xcode project MyGame.xcodeproj instead of an .ipa.
Then open that folder in VS Code with File > Open Folder….
2. Run doctor
Doctor checks your build environment and fixes anything missing.
In the title bar of the KXBuild view, open the ··· menu and run Doctor (fix environment).
> kxbuild doctor .\MyGame.xcodeprojHow do I debug a Godot game on an iPhone?
3. Write code
Edit GDScript and scenes in Godot as usual, then export again to the same folder. Native code in the export folder gets completion and go-to-definition in VS Code.
4. Debug
Select it in the KXBuild view and press F5. Native code gets breakpoints in VS Code, independently of GDScript debugging.
Build, install and launch the app on the phone:
> kxbuild run .\MyGame.xcodeprojGDScript uses Godot's own debugger.
Before you connect a phone for the first time, install and open Apple Devices from the Microsoft Store to get the USB driver on Windows. On iOS 16 and later, turn on Developer Mode in Settings > Privacy & Security and let the phone restart. See connect an iPhone to Windows for the full steps.
How do I build a Godot iOS .ipa on Windows for the App Store?
5. Release
Build with the Release configuration to get an .ipa in the export folder. To upload it to App Store Connect, see publish to the App Store from Windows.
Run KXBuild: Build for App Store (.ipa) from the Command Palette or the project's context menu.
> kxbuild build .\MyGame.xcodeproj -c Release --export app-storeAn App Store .ipa must be signed with an Apple Distribution certificate. Put your own .p12 certificate and .mobileprovision profile in a keychain/ folder and every build signs automatically; see sign iOS apps on Windows. Upload with kxstore (kxstore build upload, on Windows, Linux or macOS), then handle TestFlight and review on App Store Connect. That way you build Godot iOS games on Windows, debug them on a real iPhone and submit them from one computer.
Next steps
Build and configure
Debug versus Release, choosing a scheme, target and configuration, overriding build settings, where build products go, when you get an .ipa and when Swift package dependencies resolve.
Release and App Store submission
Build Release with a Distribution certificate to get an .ipa, upload it to App Store Connect with kxstore (or Transporter on a Mac), then go through TestFlight and App Review. Ad Hoc and enterprise distribution work the same way.
Don't see your framework?
kxbuild is a general-purpose build toolchain, so if your framework produces an Xcode project, KXBuild can build it. The list above covers common cases only. Tell us about your setup.