If you write a Flutter or Capacitor app on Linux or Windows, "you need a Mac for iOS" is true, but it is true later than most people think. I checked both toolchains on a plain Linux box this week to find the exact step where the Mac becomes necessary.
Generating the iOS project works:
$ flutter create --platforms=ios .
$ ls ios
Flutter Runner RunnerTests Runner.xcodeproj Runner.xcworkspace
So if your repo only has lib/ and pubspec.yaml (common when the app started as Android-only, or when an AI agent scaffolded it), you can add ios/ from Linux and commit it. You can also edit ios/Runner/Info.plist (permissions strings, orientation, display name) and the bundle id in ios/Runner.xcodeproj/project.pbxproj by hand.
Building does not:
$ flutter build -h
Available subcommands:
aar, apk, appbundle, bundle, linux, web
There is no ios or ipa subcommand on Linux at all. The Flutter tool hides them, because the next step is xcodebuild.
Since Capacitor 8, iOS uses Swift Package Manager instead of CocoaPods, and the CLI only requires CocoaPods when it runs on macOS. On Linux with @capacitor/cli 9.0.0:
$ npx cap add ios
✔ Adding native Xcode project in ios
[info] All Capacitor plugins have a Package.swift file and will be included in Package.swift
[success] ios platform added!
That gives you ios/App/App.xcodeproj and ios/App/CapApp-SPM/Package.swift. npx cap sync ios works too. One catch: a plugin that ships only a podspec and no Package.swift gets a warning and is left out.
| Step | Linux / Windows |
|---|---|
| Generate the iOS project | yes (Flutter, Capacitor 8+) |
| Edit Info.plist, bundle id, icons | yes |
Compile ( xcodebuild ) |
no |
| Run in the iOS Simulator, screenshots, UI tests | no |
| Sign and upload to TestFlight | no |
Everything in the first two rows you can do and commit today. The last three need macOS: a Mac you own, a macOS CI runner, or a remote Mac.
I work on XenoCI Box, a CLI that runs those three rows on a real Mac from Linux or Windows: box build, box test (simulator) and box screenshot, with the log and screenshots coming back to your machine. Signing in with GitHub gives a $10 credit, about 200 Mac minutes, no card: https://docs.xenoci.com/quickstart?ref=devto
If you hit a case where the line is somewhere else for you (KMP, React Native, Tauri), tell me in the comments and I will test it.