Publish to iOS without a Mac
Unity makes the iOS project on Windows. A cloud Mac compiles and signs it, and the upload to App Store Connect runs from that cloud build or through Apple’s API. This guide shows both routes, what they cost and where the usual traps are.
1What you need
A paid Apple Developer account, Unity’s iOS module, a cloud build service and an iPhone or iPad to test on. A Mac is not required.
- Apple Developer Program$99 a year, in your own name or your company’s. Needed for TestFlight and any App Store release.
- Unity with the iOS Build Support moduleInstall it from Unity Hub on Windows. It exports an Xcode project.
- A cloud build service with macOSCodemagic or Unity Build Automation (below). They run Xcode for you.
- A Git repository of your projectCloud builders pull the project from GitHub, GitLab or Bitbucket.
- An iPhone or iPadTestFlight installs test builds on a real device. There is no iOS simulator without a Mac.
- An iOS AdMob appA separate app and ad units in AdMob. Paste the iOS IDs in the AdMob tool.
- Your privacy policy URLApp Store Connect asks for it. Use the one from the store kit.
- A bundle IDLike com.yourstudio.yourgame. This is Apple’s app identifier; it is not the AdMob App ID (ca-app-pub-…~…).
2Pick a cloud Mac: Codemagic or Unity Build Automation
Both run Xcode on macOS in the cloud. Codemagic signs and uploads to TestFlight for you; Unity Build Automation needs your signing files and an upload script.
- Personal accounts get 500 free macOS build minutes a month, then pay per minute.
- Automatic code signing and publishing to TestFlight with an App Store Connect API key.
- Unity licence: Codemagic’s Unity guide requires a Unity Plus or Pro licence for cloud builds.
- Unity’s own cloud builder (Unity DevOps), set up from the Unity Cloud dashboard.
- Builds iOS on Unity’s macOS machines, charged by build minutes after the included ones.
- Needs a .p12 certificate, its password and a .mobileprovision profile (step 3), and an upload script (step 4).
Prices and plan limits change; check the provider’s pricing page before you start. Checked October 2026.
3Signing without Keychain Access
Everyone needs an App Store Connect API key. Codemagic then makes the certificates itself; for Unity Build Automation you make the .p12 with OpenSSL on Windows instead of Keychain Access.
Both routes
- Create an App Store Connect API key: App Store Connect → Users and Access → Integrations → App Store Connect API → generate a key with the App Manager role. Download the .p8 file (only once) and note the Issuer ID and Key ID. Keep it only in the build service’s secret settings, never in your repository.
- Register the bundle ID under Certificates, Identifiers & Profiles → Identifiers, using exactly the Bundle Identifier from Unity’s Player Settings.
- Create the app record in App Store Connect (Apps → +) with the same bundle ID. Apple has no API for this step, so it is done by hand once.
Codemagic: automatic signing
Add the API key in Codemagic (Teams → Integrations → Developer Portal) and turn on automatic code signing for the App Store distribution type. Codemagic creates the distribution certificate and provisioning profile with the key. Nothing else to make.
Unity Build Automation: .p12 + profile from Windows
- Make a private key and a certificate signing request (CSR) with OpenSSL (commands below).
- Apple Developer → Certificates → + → Apple Distribution, upload the .csr, download the .cer.
- Turn the .cer and your key into a password-protected .p12 (commands below). Keep a backup of the key, .p12 and password.
- Profiles → + → App Store (distribution, not development), pick your bundle ID and the new certificate, download the .mobileprovision.
- In the Build Automation iOS target, upload the .mobileprovision and .p12 and enter the .p12 password.
# 1. Private key and signing request (run in Git Bash or any OpenSSL prompt) openssl genrsa -out ios_distribution.key 2048 openssl req -new -key ios_distribution.key -out ios_distribution.csr -subj "/[email protected]/CN=Your Name/C=HU" # 2. Upload ios_distribution.csr in the Apple Developer site, download the certificate (distribution.cer), then: openssl x509 -inform DER -in distribution.cer -out distribution.pem openssl pkcs12 -export -legacy -inkey ios_distribution.key -in distribution.pem -out ios_distribution.p12 # OpenSSL asks for an export password: you type it into Build Automation with the .p12
4Build and upload to TestFlight
Start the cloud build and send the signed build to App Store Connect. Codemagic does the upload itself; with Unity Build Automation a short post-build script on the cloud Mac does it, or you use Apple’s Build Uploads API.
- In Unity: switch the platform to iOS, set the Bundle Identifier, version and build number, and enter your iOS App ID in the AdMob settings.
- Google Mobile Ads on iOS needs CocoaPods; the cloud Mac runs
pod installwhen the build workflow includes it. - Codemagic: add the App Store Connect publishing step with your API key and “submit to TestFlight”. The build lands in TestFlight on its own.
- Unity Build Automation: add the script below to your repository, set it as the target’s Post-Build Script (Advanced settings), and add the three environment variables. It runs on Unity’s Mac after a successful build and uploads the .ipa with
xcrun altooland your API key.
#!/bin/bash
# Assets/Editor/upload-testflight.sh (save with LF line endings)
# Environment variables set in the Build Automation target (Advanced → Environment variables):
# ASC_KEY_ID, ASC_ISSUER_ID, ASC_KEY_P8_BASE64 (the .p8 file, base64-encoded)
set -euo pipefail
IPA="${UNITY_PLAYER_PATH:-}"
[ -f "$IPA" ] || IPA="$(find "$WORKSPACE" -name '*.ipa' -print -quit)"
mkdir -p ~/.appstoreconnect/private_keys
echo "$ASC_KEY_P8_BASE64" | base64 --decode > ~/.appstoreconnect/private_keys/AuthKey_${ASC_KEY_ID}.p8
xcrun altool --upload-app -t ios -f "$IPA" --apiKey "$ASC_KEY_ID" --apiIssuer "$ASC_ISSUER_ID"Use Download rather than Copy on Windows: the file is saved with LF line endings, which the Mac build needs.
Save the script with LF line endings, or the Mac reports “bad interpreter”. Unity’s forum documents UNITY_PLAYER_PATH as the .ipa path in post-build scripts; the script falls back to searching the workspace. fastlane pilot works the same way if you prefer it.
No script at all? Download the .ipa from Build Automation and upload it from any computer with Apple’s App Store Connect Build Uploads API: create a build upload, reserve the file, send the bytes to the returned URLs, then commit it. This is what we plan to automate.
Once processing finishes, install it on your iPhone or iPad with the TestFlight app and test before you submit for review. You submit the app yourself.
5App Store privacy answers for an AdMob game
Declare the data the Google Mobile Ads SDK collects in App Privacy, add a tracking permission text if the game asks for it, and fill in the two website fields correctly.
This draft uses the facts saved in your publishing tools. Confirm each candidate data type in the final iOS archive, including every SDK and adapter.
Since 28 April 2026, App Store Connect uploads require Xcode 26 or later and the iOS 26 SDK or later. The deployment target (oldest supported iOS on a device) is separate: choose it against your Unity version and every installed SDK, then test that oldest version.
Review the final Xcode archive, including every embedded SDK: valid PrivacyInfo.xcprivacy files, collected-data declarations, tracking domains, approved reasons for required-reason APIs, and manifests/signatures for SDKs Apple lists as requiring them. Generate the archive privacy report and reconcile it with App Privacy. This answer sheet does not generate or validate manifests.
| Apple category / type | Purposes to review | Linked to You | Used to Track You |
|---|
Also review Gameplay Content for collected saves, matching or gameplay logic; Other Usage Data for other activity; Contact Info and identifiers returned by sign-in providers; and all custom event parameters. An optional Analytics choice does not automatically exempt that data from Apple disclosure.
- App Privacy: use Apple's categories and purposes and review Linked to You and Used to Track You for each type in the worksheet above. Confirm them against the exact SDK versions and settings in your iOS archive.
- App Tracking Transparency: obtain permission before tracking or accessing IDFA. Answer tracking separately for each data type from actual cross-company use by your app and its SDKs. Showing a prompt does not establish tracking, and no prompt does not prove its absence. A refusal must stop tracking; declare other collection separately.
- Marketing URL: your website’s home page. AdMob reads app-ads.txt from this domain, so check it with the app-ads.txt checker. The same file works for Android and iOS.
- Privacy Policy URL: a separate field (App Privacy section). Paste your privacy policy link there, not your home page.
Managed iOS builds from HyperCodeStore are planned: we would run the cloud build and upload for you, and you would only supply your Apple API key and submit the app yourself. It isn’t available yet; this guide is the route today. If you want it, tell us.
Questions
Can I publish to the App Store without a Mac?
Yes. Unity exports the iOS project on Windows, a cloud Mac (Codemagic or Unity Build Automation) compiles and signs it, and the upload to App Store Connect runs from that build or through Apple’s API, so you never need a Mac of your own.
Do I need a paid Apple Developer account?
Yes. Releasing on the App Store, and testing through TestFlight, need an Apple Developer Program membership ($99 a year) in your own or your company’s name.
Can I test on an iPhone without a Mac?
Yes, if you have an iPhone or iPad. Upload the build to App Store Connect and install it with the TestFlight app; no Mac or cable is needed.
Does Codemagic need a Unity Plus or Pro licence?
Codemagic’s Unity guide requires a Unity Plus or Pro licence for cloud builds. Unity Build Automation is Unity’s own build service and is billed through Unity.