The short answer
Most game logic debugging is done in the Editor's Play mode and needs no Mac. iOS-specific problems have to be examined in Xcode, and both the simulator and real devices depend on macOS. A remote Mac can run simulator builds; real-device debugging and profiling against a connected device cannot be done, because the device has to be attached to that Mac.
Which steps require macOS
No Mac needed
- Script debugging, scenes and UI logic in the Editor's Play mode.
Needs macOS, and a remote Mac can do it
- Simulator builds. Unity's iOS Player Settings has a Target SDK item, and the Manual specifically warns that if you select the device SDK in Unity but choose a simulator as the run destination in Xcode, the build fails. The two must agree.
- Reading native-layer logs and crash stack traces in the Xcode console.
Needs macOS, and a remote Mac cannot do it
- Installing on a real device and debugging. The Manual describes Build and Run as installing the app on a connected iOS device.
- Profiling with a real device connected.
For connecting the iPhone in your hand to the remote Mac over the network, we found no official statement that it works, and changing the machine's network configuration for this is not allowed, so please do not plan on it.
How to do it on a remote Mac
Switch Target SDK to the simulator
Edit → Project Settings → Player → iOS → Other Settings → Configuration, and change Target SDK to Simulator SDK. A Simulator Architecture option then appears; choose the architecture matching the remote Mac's chip. After the change you have to regenerate the Xcode project; the one generated earlier for real devices cannot simply be run on the simulator.
Turn on the development build switches
In the iOS build settings tick Development Build, which includes Profiler support and the assertions in C# assemblies. Several options depend on it: Script Debugging adds debug symbols and produces unoptimised code; Wait for Managed Debugger makes the app wait for a debugger to attach before executing scripts; Autoconnect Profiler makes the build connect to the Profiler automatically. Remember to turn them all off before a release.
Generate the project and run on a simulator in Xcode
Generate into a separate directory, kept apart from the project for real devices, to save yourself repeated Replace runs. In Xcode select the Unity-iPhone scheme and a simulator model, then run. Run in Xcode as in the build settings can be Debug or Release: Debug carries extra code that helps debugging, Release is the optimised version.
Know what the simulator does not tell you
The simulator uses this Mac's processor and graphics, so frame rate, memory and heat represent no iPhone at all. It is suitable for checking: whether the app launches, UI adaptation to different screen ratios, whether native plugins have a simulator version, and whether the flow works end to end. Some third-party native plugins only provide libraries for device architectures and fail to link in a simulator build; in that case you can only skip the simulator.
Do real-device checks through TestFlight
Switch Target SDK back to the device SDK, make a package following our Unity build and upload pages, and install it on your own iPhone through TestFlight. No debugger can be attached, so reserve a debug panel or a log reporting entry point in the game that displays or uploads frame rate, memory and key state.
Leave performance problems to a setup with a real device
The phase where you stay connected to a real device watching the Profiler and tuning quality settings over and over does not suit a remote Mac. A workable arrangement: routine packaging and TestFlight distribution on the remote Mac; for the few weeks of concentrated performance optimisation, a Mac on your desk.
FAQ
Does the game look smooth in the simulator through remote desktop?
Do not use it to judge smoothness. The remote picture itself is compressed and delayed, and the result depends on your own local network connection. The simulator on a remote Mac is only suitable for checking functionality.
Do C# breakpoints work in a simulator build?
The Manual's descriptions of Script Debugging and Wait for Managed Debugger apply to development builds, and the connection conditions are simplest when the debugger and the app are on the same Mac. How to attach is covered by Unity's debugging documentation; we have not verified it on the simulator.
What is the minimum iOS version Unity supports?
The Manual's requirements and compatibility page gives the minimum OS version currently supported and the recommended Xcode version. Both numbers change with the Unity version, so go by the Manual for the version you use.
I mainly do performance tuning. Is renting a remote Mac a good fit?
Not really; the last step explains why. Packaging and distribution are a good fit. If you have both needs, start with should I rent or buy a Mac to publish an iOS app.
Related
- How do I build an iOS .ipa from a Unity project without a Mac?
- How do I upload a Unity game to TestFlight and the App Store without a Mac?
- Can I debug on a real iPhone with a remote Mac?
- Is Xcode laggy on a remote Mac?
- iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support