{"slug": "flutter-and-capacitor-on-linux-exactly-where-the-ios-line-is", "title": "Flutter and Capacitor on Linux: exactly where the iOS line is", "summary": "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.", "body_md": "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.\n\nGenerating the iOS project works:\n\n``` bash\n$ flutter create --platforms=ios .\n$ ls ios\nFlutter  Runner  RunnerTests  Runner.xcodeproj  Runner.xcworkspace\n```\n\nSo 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.\n\nBuilding does not:\n\n``` bash\n$ flutter build -h\nAvailable subcommands:\n  aar, apk, appbundle, bundle, linux, web\n```\n\nThere is no `ios` or `ipa` subcommand on Linux at all. The Flutter tool hides them, because the next step is `xcodebuild`.\n\nSince 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:\n\n``` bash\n$ npx cap add ios\n✔ Adding native Xcode project in ios\n[info] All Capacitor plugins have a Package.swift file and will be included in Package.swift\n[success] ios platform added!\n```\n\nThat 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.\n\n| Step | Linux / Windows | \n|---|---|\n| Generate the iOS project | yes (Flutter, Capacitor 8+) | \n| Edit Info.plist, bundle id, icons | yes | \n| Compile ( `xcodebuild` ) | no | \n| Run in the iOS Simulator, screenshots, UI tests | no | \n| Sign and upload to TestFlight | no | \n\nEverything 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.\n\nI 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](https://docs.xenoci.com/quickstart?ref=devto)\n\nIf 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.", "url": "https://wpnews.pro/news/flutter-and-capacitor-on-linux-exactly-where-the-ios-line-is", "canonical_source": "https://dev.to/xenoci/flutter-and-capacitor-on-linux-exactly-where-the-ios-line-is-41l", "published_at": "2026-12-01 19:41:09+00:00", "updated_at": "2026-12-01 19:45:15.886744+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Flutter", "Capacitor", "XenoCI Box", "Apple", "Xcode", "CocoaPods", "Swift Package Manager", "GitHub"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/flutter-and-capacitor-on-linux-exactly-where-the-ios-line-is", "markdown": "https://wpnews.pro/news/flutter-and-capacitor-on-linux-exactly-where-the-ios-line-is.md", "text": "https://wpnews.pro/news/flutter-and-capacitor-on-linux-exactly-where-the-ios-line-is.txt", "jsonld": "https://wpnews.pro/news/flutter-and-capacitor-on-linux-exactly-where-the-ios-line-is.jsonld"}}