cd /news/developer-tools/flutter-and-capacitor-on-linux-exact… · home › topics › developer-tools › article
[ARTICLE · art-179685] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Flutter and Capacitor on Linux: exactly where the iOS line is

A developer tested Flutter and Capacitor toolchains on a plain Linux box and found the exact point where macOS becomes mandatory for iOS work: project generation, Info.plist and bundle-id edits, and Capacitor 8+ Swift Package Manager sync all succeed on Linux, but compiling with xcodebuild, running the simulator, and signing for TestFlight do not. The writeup notes Flutter's CLI hides the ios and ipa build subcommands on Linux, and that Capacitor plugins shipping only a podspec without a Package.swift are silently dropped. The author, who works on the XenoCI Box remote-Mac CLI, invites readers to report other cross-platform cases for testing.

key takeaway

On Linux, Flutter can generate the ios/ project and Capacitor 8+ can add and sync iOS via Swift Package Manager, but xcodebuild, simulator runs and TestFlight signing require macOS, so plan a Mac or remote-Mac CI for those steps.

by read2 min views1 publishedDec 1, 2026

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.

── more in #developer-tools 4 stories · sorted by recency
── more on @flutter 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/flutter-and-capacito…] indexed:0 read:2min 2026-12-01 · —