Why the iOS build runs on a Mac
Flutter and React Native let you edit app code on Windows or Linux. The iOS build still uses Apple's iOS SDK and Xcode tools, which run on macOS. Install Xcode and the iOS Simulator runtime your project needs on the rented Mac.
Choose a machine in the market. The iOS build guide covers renting, connecting over SSH and remote desktop, and setting up Xcode.
Set up the framework on the Mac
- Flutter. Install the Flutter SDK version your project uses. Run
flutter doctoron the Mac to check the setup. Install CocoaPods if the project uses it for native iOS dependencies. - React Native. Install the Node.js version your project expects. If its iOS setup uses CocoaPods, set up Ruby and install CocoaPods using the project's instructions. Use the project's dependency commands before building.
Send your changes to the Mac
With Git, push a branch from your computer, then check it out in a clone on the Mac. To copy uncommitted changes, use rsync over SSH with the nvto- host name Connect creates. Keep Connect running during the copy. See Connecting for the alias format.
Check what you are sending before syncing a working tree. Keep production credentials, customer data and any source code the owner must never see on your own computer. The Mac's owner can reach the running virtual machine. See the security model.
Build and run the app
Run the build from the project directory on the Mac. For Flutter, flutter build ios builds for iOS devices. To try the app in the Simulator, open the Simulator on the remote desktop, select a simulated iPhone and use flutter run with that device selected.
For React Native, use the project's iOS script, such as npm run ios if it defines one. Watch the app launch in the Simulator on the remote desktop.
Keep the setup for the project
A day suits an occasional build or test. If you expect to work on the iOS app throughout the month, a 30-day lease keeps Xcode, the Simulator runtime and your dependencies on the same virtual machine. See choosing a lease term.
Save changes and build output you need outside the rented Mac. The virtual machine is deleted when the lease ends.