Blog· What you can do with your Mac mini·
Kotlin Multiplatform iOS app from Windows: build, run and publish it on a cloud Mac
Write your Kotlin Multiplatform or Compose Multiplatform app on Windows and do the iOS part on a cloud Mac mini: set up Xcode and Android Studio, run the app in the iOS Simulator, sign it and upload it to App Store Connect.

Kotlin Multiplatform lets you write the logic of your app once, in Kotlin, and use it on Android and on iOS. With Compose Multiplatform you can share the screens too. On a Windows PC everything goes well until the iOS half: the Android app runs, the shared code compiles, and then the documentation says it plainly: “To create iOS applications, you need a macOS machine with Xcode installed.”
That Mac doesn’t have to sit on your desk. This guide shows the whole flow with your daily work on Windows and the iOS steps on a dedicated Mac mini in the cloud: preparing the Mac, running the app in the iOS Simulator, signing it and uploading it to App Store Connect.
What you need before you start
- A Kotlin Multiplatform project with an iOS target, or the wish to create one. Step 1 covers a new project.
- Your code in a Git repository (GitHub, GitLab, Bitbucket or your own). It carries the project between your PC and the Mac.
- A paid Apple Developer Program membership to upload to TestFlight and the App Store. The Simulator works without it.
- A cloud Mac. A SoloRack Mac mini M6 comes with 16 GB of memory, a 256 GB SSD, a 1 Gbit/s connection and your own macOS administrator account. You install Xcode and Android Studio on it yourself, once.
Both Kotlin Multiplatform and Compose Multiplatform are marked Stable for iOS in the Kotlin documentation, so this is a setup for real apps, not for experiments.
Step 1: get the project ready on Windows
If you already have a project, skip to the last paragraph of this step.
To create one, open IntelliJ IDEA or Android Studio, choose File, New, Project and pick Kotlin Multiplatform in the list on the left. Select Android and iOS as platforms. Leave Share UI selected if you want Compose Multiplatform, so that both apps draw the same screens from the same Kotlin code.
The wizard creates one module per platform plus the shared one:
androidApp: the Android application.iosApp: an Xcode project that builds the iOS application.shared: the Kotlin Multiplatform module with the code both apps use.
On Windows you work in shared and androidApp as usual and run the Android app in the emulator or on your phone. The iosApp folder travels with the repository and waits for the Mac.
Before you push, do one thing that saves a confusing error later. Windows doesn’t keep the “executable” mark on files, and the Mac needs it on the Gradle script. Tell Git to record it:
git update-index --chmod=+x gradlew
git commit -m "Make gradlew executable"
git push
Step 2: prepare the Mac
Connect to your Mac with the remote desktop app, using the details in My account. The first time, install four things.
- Xcode, from the App Store or the Apple Developer website, signing in with your own Apple Account. Open it once and let it install its components. In Xcode, Settings, Components, check that at least one iOS Simulator is installed. The Kotlin documentation adds a detail worth remembering: launch Xcode by hand again every time it’s updated.
- The command line tools, which also give you Git. In Terminal:
xcode-select --install
- Android Studio (or IntelliJ IDEA), downloaded from its website in the version for Apple silicon. Open it and complete the first-run setup, which downloads the Android SDK. You need the IDE on the Mac even though you only care about iOS here: it brings the Java runtime Gradle uses, and it can start the iOS app with one click.
- The Kotlin Multiplatform plugin. In the IDE, open Settings, Plugins, Marketplace, search for Kotlin Multiplatform and install it. It adds the run configurations for iOS and checks your environment before a build.
Then tell the system where the Android SDK is, as the Kotlin quickstart asks. In Terminal:
echo 'export ANDROID_HOME=~/Library/Android/sdk' >> ~/.zprofile
source ~/.zprofile
Optional: let KDoctor check the setup
KDoctor is a small command-line tool from the Kotlin team that works on macOS only. It checks the system, the JDK, Android Studio and its plugins, Xcode and CocoaPods, and prints a green tick, a warning or a red cross for each. It installs with Homebrew, which you add to the Mac yourself from brew.sh:
brew install kdoctor
kdoctor
A warning about CocoaPods is fine for a new project. The wizard connects the shared module to Xcode directly, and the documentation says CocoaPods is needed only if your project has Pod dependencies.
Step 3: run the app in the iOS Simulator
Clone the project on the Mac:
git clone https://github.com/your-account/your-app.git
Open the folder in Android Studio. The first import takes a couple of minutes while Gradle downloads what it needs. When it finishes:
- In the list of run configurations at the top, select iosApp.
- Next to it, choose a simulated device, for example a recent iPhone.
- Click Run.
The first build is the slow one: it collects the native dependencies and fills the caches, and the next runs are faster. Then the iOS Simulator opens on the Mac’s screen, inside your remote desktop session, with your app in it. Your Kotlin code is running on iOS.
This is the moment to look for what only shows on an iPhone: the safe areas around the camera housing and the home indicator, the keyboard covering a text field, fonts and scrolling that feel different from Android, a permission text that is missing.
Step 4: understand what Xcode does with your Kotlin code
When something fails in an iOS build, it helps to know how the two worlds are joined.
The iosApp Xcode project has a Run Script build phase, placed before Compile Sources. Every time Xcode builds the app, that script goes to the root of your project and runs a Gradle task:
./gradlew :shared:embedAndSignAppleFrameworkForXcode
The task compiles the shared module into an iOS framework and hands it to Xcode, which links it into the app. So an iOS build is a Gradle build inside an Xcode build, and an error in your Kotlin code appears in Xcode’s build log.
Three practical consequences:
- “Permission denied” on gradlew means the executable mark from step 1 didn’t arrive. On the Mac,
chmod +x gradlewfixes it. - Gradle needs Java. Inside Android Studio it’s handled for you. In Terminal or over SSH, point
JAVA_HOMEto the runtime that comes with Android Studio. The documentation recommends at least Java 17, and the bundled JetBrains Runtime is newer:
echo 'export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"' >> ~/.zprofile
source ~/.zprofile
- After changing build settings in Xcode, stop the Gradle daemon so it picks them up:
./gradlew --stop.
To open the iOS project in Xcode, use File, Open Project in Xcode from the IDE, or in Terminal, from the project folder:
xed iosApp
Step 5: a quick loop between Windows and the Mac
You don’t move your workday to the Mac. A comfortable loop is:
- On Windows, write the code, run the Android app and the shared tests, push.
- On the Mac, pull and press Run on the iosApp configuration.
If you prefer the terminal, do the pull over SSH from Windows. My account shows your command, which looks like ssh -p <port> <user>@connect.solorack.com, once you’ve added your public SSH key there. Then:
cd your-app
git pull
./gradlew build
./gradlew build compiles the shared code for every target, iOS included, and runs the checks, so you learn in the terminal whether the iOS side still compiles. Open the remote desktop when you want to see the app in the Simulator.
Step 6: set the name, the bundle ID and the signing
Three settings turn a sample project into your app.
- Bundle ID and name. Open
iosApp/Configuration/Config.xcconfigand setBUNDLE_ID, the identifier of your app on iOS, for examplecom.yourcompany.yourapp, andAPP_NAME. If the project is open in the IDE, close it before you changeAPP_NAMEand open it again afterwards. - Your developer account. In Xcode, Settings, Accounts: add the Apple Account that has your Apple Developer Program membership.
- Your team. In Xcode, select the iosApp target, open Signing & Capabilities and choose your Team. In the IDE, edit the iosApp run configuration and pick the same team under Options, Development team.
Check the privacy manifest too. The Kotlin documentation reminds you that, under App Store rules, a missing or incomplete privacy manifest can lead to warnings or to a rejection, and it has a page that explains what a Kotlin Multiplatform app must declare.
Step 7: upload to App Store Connect
The Kotlin documentation says it in one line: the iOS app of a Kotlin Multiplatform project is built from a typical Xcode project, so publishing it works like any other iOS app. Apple asks that uploads are built with Xcode 26 or later, which the current Xcode on your Mac satisfies.
- Create the app record. In App Store Connect, add a new app with the same bundle identifier, the name, the primary language and the SKU.
- Set the version and the build number in Xcode. Each upload needs a higher build number.
- Archive. Choose Any iOS Device as the destination, then Product, Archive. Xcode runs the Gradle task in release mode and builds the app. When it finishes, the Organizer window opens.
- Upload. In the Organizer, choose Distribute App, then App Store Connect, and follow the steps.
When Apple has processed the build, it appears in TestFlight. Install the TestFlight app on your iPhone, add yourself as a tester and try the real app on the real device. Then complete the screenshots, the description and the privacy details, pick the build and submit it for review. Our guide on uploading an app to the App Store without a Mac goes through the App Store Connect side step by step.
Keep your signing identity safe
Your distribution certificate and its private key live in the Mac’s keychain. Before your rental ends, export them: open Keychain Access, find your Apple Distribution certificate and export it as a .p12 file with a password. Download it, with anything you changed only on the Mac. At the end of a rental your macOS account and all its files are deleted, with no copy kept, and our reminders tell you in time to save what you need.
Which plan fits a Kotlin Multiplatform project
- Your first iOS release is a few focused days: install the tools, fix the iOS details, upload, answer the review. A 7-day pass covers that sprint.
- An app you keep developing needs the iOS build every time the shared code changes. The monthly plan keeps the same Mac, with Xcode, Android Studio and the Gradle caches already in place, so a build takes minutes.
- A team can go one step further and let the Mac build on every push, as a macOS runner for GitHub Actions.
Plans and passes renew on their own until you turn renewal off in My account. After a restart, even one you start from My account, the Mac goes back to your session by itself.
The same approach works for other cross-platform tools: see our guides for Flutter and React Native, and the one on the iOS Simulator on Windows.
Run your Kotlin code on iOS today
Your shared module is already written. What it needs is a Mac that turns it into an iOS app, today for the Simulator and next week for the App Store. Rent a dedicated Mac mini M6 from SoloRack, from $3.73 a day on the monthly plan ($112 a month), with your own admin account, remote desktop and SSH. See the plans on our pricing page and press Run on iosApp this afternoon.