TürkiyeVPS

Flutter and React Native iOS Build Without a Mac: Step by Step

You built your Flutter or React Native app on Windows and now need the iOS build. Cloud build services or a rented Mac? Step-by-step iOS build, signing and common errors for Flutter and React Native (including Expo) on a rented Mac.

5 min read

With Flutter and React Native you ship Android and iOS apps from one code base. But the last step on the iOS side always leads to the same place: building, signing and uploading to the App Store happen in Xcode on macOS. This guide covers the options for an iOS build when you don't own a Mac, and the commands you need for Flutter and React Native on a rented Mac.

Quick summary: For simple projects, cloud services such as Codemagic or Expo EAS Build can produce the iOS build for you. When you hit native modules, CocoaPods errors, signing problems or need to debug in the iOS Simulator, you need a Mac you control. TürkiyeVPS Mac mini rental is daily, weekly or monthly, and the whole Mac is reserved for you.

Options: cloud build or a rented Mac?

Option Good when Limit
CI services such as Codemagic or Bitrise The project already builds; you only need regular builds and uploads No Mac desktop for debugging; billed per minute or per build
Expo EAS Build React Native projects that use Expo Limited control over native settings outside Expo
GitHub Actions macOS runner Code is on GitHub and you want automatic builds macOS minutes cost more than Linux; long builds get expensive
Rented Mac First iOS setup, CocoaPods / signing errors, Simulator testing You manage the Mac yourself

A practical path: solve the first iOS setup and the errors on a rented Mac; once the project builds cleanly, move to a CI service if you like, or turn the same Mac into a GitHub Actions / GitLab runner.

Connect to the rented Mac and prepare it

  1. When the Mac is delivered, the connection details appear in your client area. From Windows, connect to the desktop with a VNC client and to the terminal over SSH (connection guide). You can also edit code directly on the Mac with the VS Code Remote - SSH extension.
  2. Download Xcode from the App Store or developer.apple.com and open it once; accept the licence and let it install the extra components. In the terminal, make sure the command line tools point to Xcode:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept
  1. Install Homebrew and add CocoaPods:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install cocoapods

iOS build with Flutter

  1. Install the Flutter SDK (with Homebrew brew install --cask flutter or the zip from the official site) and check it:
flutter doctor

You should see green ticks for Xcode and CocoaPods.

  1. Clone the project and install the dependencies:
git clone https://github.com/user/app.git && cd app
flutter pub get
cd ios && pod install && cd ..
  1. Open ios/Runner.xcworkspace in Xcode. Under Runner → Signing & Capabilities, choose your team, keep Automatically manage signing ticked, and make sure the Bundle Identifier matches your App Store Connect record.
  2. Build the App Store package:
flutter build ipa --release

The output goes to build/ios/ipa/. To upload, use Apple's Transporter app, or open build/ios/archive/Runner.xcarchive in the Xcode Organizer and choose Distribute App.

iOS build with React Native

React Native CLI project

git clone https://github.com/user/app.git && cd app
npm install
cd ios && pod install && cd ..

Then open the .xcworkspace file in the ios/ folder (not the .xcodeproj) in Xcode, choose the signing team, select Any iOS Device (arm64) and run Product → Archive. Upload from the Organizer with Distribute App → App Store Connect.

To try it in the Simulator:

npx react-native run-ios

Expo project

Expo gives you two ways: build in the cloud with eas build --platform ios, or build locally on the rented Mac. For a local build:

npx expo prebuild --platform ios
npx expo run:ios --configuration Release

Or run EAS on the Mac itself: eas build --platform ios --local. It builds with the same configuration on your own Mac, without waiting in the EAS cloud queue.

To upload every release without archiving by hand: upload to TestFlight with Fastlane (for Flutter, flutter build ipa and then upload_to_testflight).

Common errors

  • pod install fails: try pod repo update first. On Apple Silicon Macs, use the CocoaPods installed with Homebrew instead of the system Ruby.
  • "No signing certificate" / "Provisioning profile" error: check that your account is added under Xcode → Settings → Accounts and that the right team is selected in the project.
  • Minimum iOS version warning: some packages need a newer iOS; align the platform :ios line in ios/Podfile with the Minimum Deployments setting in Xcode.
  • Build number rejected: the App Store never accepts the same build number twice; in Flutter, raise the number after + in version: 1.0.0+2 in pubspec.yaml.
  • Disk full: delete old Simulators and the ~/Library/Developer/Xcode/DerivedData folder.

Which Mac rental plan?

  • One-off iOS upload: daily (10.49 USD) is often enough; see the checklist in rent a Mac for one day.
  • First setup and a few fixes: 3 days (26.24 USD) or weekly (41.99 USD).
  • Ongoing development and CI: monthly Mac Starter (from 89.24 USD). If you move to monthly within 7 days after a daily rental, the daily fee is deducted from your first invoice.

Every plan gives you a whole Apple M6 Mac mini (12 cores, 16 GB RAM) in Istanbul, reserved for you alone. Current prices and availability: Mac mini rental.

Frequently Asked Questions

Can I build a Flutter iOS app on Windows?

Not directly. Flutter on Windows builds Android and Windows apps; an iOS build needs Xcode, which runs only on macOS. You either use a cloud service or a Mac you connect to remotely.

What about a Hackintosh or a macOS virtual machine on Windows?

Apple's licence allows macOS only on Apple hardware, and such setups often break with Xcode updates. For an app you are going to publish, a real Mac is the safer choice.

How do I test the app on my iPhone?

Upload it to App Store Connect and use TestFlight. A rented Mac is in a data center, so you cannot connect your iPhone with a cable; use the iOS Simulator for interface tests.