Direct answer
Yes. According to Unity's documentation, an iOS build has Unity generate an Xcode project first, and then Xcode compiles it into the app; a local build has to be done on macOS. A remote Mac can take on both steps.
Basis
- Unity's documentation describes the iOS build process as two steps: Unity generates an Xcode project, and Xcode compiles that project into an app. Because Xcode exists only for macOS, the other option Unity offers people without a Mac is its own cloud build service.
- The most dependable approach is to install the same version of the Unity Editor and the iOS build module on the remote Mac, pull the project, then switch platform, export the Xcode project, archive and upload, all on that one machine. Some people in the community export the Xcode project on Windows and copy it to a Mac to compile; whether that is supported and what limits it has is for Unity's official documentation to say.
- Game projects are usually very large. Syncing with Git plus its large-file extension, or whatever version control tool you normally use, is more reliable than dragging files through the remote desktop. The first time the project is opened on the Mac, Unity reimports every asset for the iOS platform. This takes a long time and a lot of disk space, and it is normal.
- Unity licenses are activated per seat. Signing in to your Unity account on the remote Mac uses up one activation; the number allowed and the rules are set by Unity's license terms. Remember to return the license in the editor before the rental ends.
Boundaries: when the answer is different
Where a game most needs a physical device, a remote Mac cannot help: frame rate, heat, touch feel and the memory ceiling of different models all have to be checked on real hardware. The only route is to send a build to your own phone through TestFlight and then go back and change things, which makes each iteration slow. If the project has reached the stage of frequent on-device tuning, a Mac at hand is the better fit. How long asset import and compilation take depends on the size of the project and the machine's configuration, and we have no measured data. Choose memory and disk generously for the size of the project; see the plans page for pricing and availability.
How to do it
- Install Xcode on the remote Mac, then the Unity Editor version that matches the project, with the iOS build module.
- Pull the project to the remote Mac with your version control tool and wait for the first asset import to finish.
- In the build settings, switch to the iOS platform, fill in the bundle identifier and version number, and export the Xcode project.
- Open the exported project in Xcode, configure signing, and first confirm it compiles in the simulator or as an archive.
- Archive and upload, then install on your own device through TestFlight to check performance.
Related questions
- Will the first dependency download for a large project be slow on a remote Mac?
- Remote Mac vs GitHub Actions macOS runner or Codemagic: which should I use?
- How do I sign an iOS app and upload it to the App Store from a remote Mac?
- Can I send TestFlight builds from a rented Mac if I don't own a Mac?
Use case
This question belongs to the use case: iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device
Other questions in the same use case:
- I write React Native on Windows or Linux. Can I build the iOS app on a remote Mac?
- Can a remote Mac's simulator make App Store screenshots without an iPhone?
- Is the iOS Simulator laggy over remote desktop? How do swipes and taps feel?
- Are SwiftUI previews and Storyboards slow on a remote Mac?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support