Direct answer
You cannot build an ipa on Windows itself. Flutter's iOS build depends on Xcode and only runs on macOS. Write the code on Windows, then switch to a Mac or a cloud build when it is time to produce the package.
Basis
- Flutter's official iOS deployment documentation states that building and releasing requires Xcode and a device running macOS. The Windows version of the Flutter tool has no iOS build target.
- On a Mac the command is
flutter build ipa. According to the official docs it produces an Xcode archive inbuild/ios/archive/and an ipa for App Store submission inbuild/ios/ipa/. Once you have the ipa, the docs list three ways to upload it: drag it into Transporter, upload with the command-line tool, or open the archive in Xcode, then validate and distribute. - The Dart business code is shared between both platforms, so day-to-day development and UI debugging can stay on Windows with an Android device. The Mac only handles iOS dependency installation, signing and the build.
- The other route is a cloud build: connect the repository to a service that offers macOS build machines and let the pipeline run the same command. It saves you from setting up the environment, but the signing files have to be configured in advance, and when something fails you only have logs to work from, with no desktop to look at.
Boundaries: when the answer is different
If the project has a lot of native iOS plugins to modify, or you need to debug platform-specific problems on a real device again and again, using a Mac only at build time is not enough; you need a machine you can keep within reach long term. The first build on a new machine has to download Xcode and every dependency, so it takes far longer than later builds. Download speed depends on the network route; we have no measured data and make no promise about how long it takes.
How to do it
- Push the code to a Git repository and pull it on the remote Mac, so you are not passing zip files back and forth.
- Install Xcode, Flutter and CocoaPods on the Mac, then run
flutter doctorand clear every issue in the iOS section. - Open
ios/Runner.xcworkspacein Xcode, choose the Team and Bundle Identifier on the Runner target, and leave automatic signing on. - Set the version and build number in
pubspec.yaml, then runflutter build ipa. - Upload the file in
build/ios/ipa/with Transporter, then verify it in TestFlight.
Related questions
- How do I publish an app to the App Store without a Mac?
- How do I sign an iOS app and upload it to the App Store from a remote Mac?
- Remote Mac vs GitHub Actions macOS runner or Codemagic: which should I use?
- Is Xcode laggy on a remote Mac?
Use case
This question belongs to the use case: iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device
Other questions in the same use case:
- Can I sign in with my own Apple Developer account on a rented Mac?
- Can I debug on a real iPhone with a remote Mac?
- Is one month of Mac rental enough to publish a single app?
- Should I rent or buy a Mac just to build and publish an iOS app?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support