Home/Without a Mac/How do I build a Flutter iOS .ipa without owning a Mac?

How do I build a Flutter iOS .ipa without owning a Mac?

Updated · airankrush

The short answer

The only part that must happen on macOS is the iOS build itself: flutter build ipa depends on Xcode, and the Flutter documentation states that it needs a device running macOS. Your Dart code, UI and Android version can stay on the computer you already use; the remote Mac only installs dependencies and produces the package.

Which steps require macOS

Steps that need macOS

  • flutter build ipa: it calls Xcode internally to archive and export. The Windows and Linux Flutter tools do not have this build target.
  • Installing CocoaPods dependencies: plugins with native iOS code rely on it to fetch and link them.
  • Opening ios/Runner.xcworkspace in Xcode for the first time to pick a Team and confirm the Bundle Identifier.

What you can finish on your own computer first

  • All Dart business logic and UI, debugged on an Android device or a desktop target.
  • The version in pubspec.yaml (in the form 1.0.0+1; the part after the plus sign is the build number).
  • Registering the Bundle ID in the Apple Developer portal and creating the app record in App Store Connect. Both are done in a browser.

The basis is Flutter's official iOS deployment documentation.

How to do it on a remote Mac

  1. Install Xcode on the remote Mac and finish first-time setup

    Install Xcode from the App Store with your own Apple Account. Then do three things from Flutter's iOS setup documentation: point the command-line tools at /Applications/Xcode.app/Contents/Developer with xcode-select -s, run xcodebuild -runFirstLaunch, and accept the license with xcodebuild -license. The official examples run the first two and the license command with elevated privileges, which asks for the password of the current Mac account. Your account is an admin account, so you can complete them.

  2. Install Flutter and CocoaPods, then clear every flutter doctor issue

    Follow the official install page for the Flutter SDK. As soon as the project has a plugin with native code, you need CocoaPods; the official documentation only links to the CocoaPods installation guide and does not give a fixed command. After installing, run:

    flutter doctor

    Resolve each error in the Xcode section before going further. Do not start a build with red crosses still showing.

  3. Pull the code onto the remote Mac with Git

    Push the repository to the Git service you normally use and clone it on the remote Mac. After that, each release only needs a git pull, which is less work than sending archives back and forth and will not miss changes under ios/. Once the code is there, run flutter pub get.

  4. Open the Runner project and confirm the signing settings

    open ios/Runner.xcworkspace

    In the Xcode navigator select the Runner target, check the Display Name and Bundle Identifier, and choose a Team under Signing & Capabilities. The official documentation says Automatically manage signing is on by default and is enough for most apps. The details of this step are covered on our Flutter code signing page.

  5. Run the build

    flutter build ipa

    Common options listed in the official documentation: --build-name and --build-number override the version in pubspec.yaml; --obfuscate together with --split-debug-info obfuscates Dart code; --export-options-plist=<path> supplies export options so that repeat builds do not need Xcode opened again.

  6. Check where the output went

    A successful build leaves two things: the Xcode archive (.xcarchive) under build/ios/archive/, and the .ipa for App Store submission under build/ios/ipa/. If you only got the archive and no .ipa, signing most likely failed during export; open the archive in Xcode to read the exact message.

FAQ

The first build is very slow. Is that normal?

Yes. The first run has to download Xcode, the iOS platform components and every Pod; later builds reuse the caches. Download speed depends on your network connection. We have no measured figures and make no promise about duration.

Can I do everything from the command line without opening Xcode?

Once signing is configured, yes. The official approach is to export an ExportOptions.plist once from Xcode's Distribute App flow and reuse it with --export-options-plist. For the first build it is still worth confirming the Team and Bundle Identifier in the graphical interface.

How do I give a build to testers without going through the App Store?

The official documentation offers three values, --export-method ad-hoc, development and enterprise, for distribution outside the App Store. Each needs the matching type of provisioning profile; device scope and account requirements are defined in Apple's developer documentation.

I only need the Mac for packaging. How long should I rent it?

It depends on how often you release and how many rounds of fixes follow a rejected review. Pricing and availability are on the plans page; for estimating the term, see is one month enough to publish a single app.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All no-Mac guides