Direct answer
It works, and it is enough. The iOS Simulator is part of Xcode and runs as usual on a remote Mac. The interface, navigation, data storage and similar topics in a beginner course can all be done in the simulator; not being able to connect a phone does not get in the way of learning.
Basis
- Apple's description of Xcode states that it provides simulators for the various Apple devices. Pick a device model in Xcode and click Run, and the simulator opens as a window where mouse clicks stand in for finger taps. It is operated the same way inside remote desktop.
- Testing on a real device has hurdles of its own anyway. According to Apple's description of membership benefits, a free account testing on a device through a personal team is limited in how many devices and app identifiers it can register, and the app expires after a few days and has to be installed again. So even for people with their own Mac, many beginner courses are built mainly around the simulator.
- The simulator is not a complete phone. Features that depend on physical hardware may be unavailable or behave differently in it; go by Apple's developer documentation for the exact scope. That material generally appears in more advanced courses, not at the beginner stage.
- The simulator runtime for each iOS version is a separate download, and each takes up a fair amount of disk space. For learning, keeping the one version the course uses is enough; do not install every platform.
Boundaries: when the answer is different
If your goal is to get the app onto your own phone to show people as soon as possible, a remote Mac cannot do a cable install, and there is no workaround for that. Animations and scrolling in the simulator are delayed over remote desktop, to a degree that depends on your local network route; when you need to judge whether an animation is smooth, the remote picture cannot be your evidence.
How to do it
- The first time you open Xcode, install the iOS platform components when prompted, and tick iOS only.
- After creating a project, choose a simulator device in the top toolbar and click Run.
- Wait for the simulator to finish starting and the app to appear, then test it with mouse clicks.
- When disk space is tight, delete unused simulator runtimes in Xcode's settings.
- When you need to show a teacher or a friend the result, export it with the simulator's built-in screenshot and screen recording features.
Related questions
- Learn Swift and Xcode without a Mac? Rent to try it or take a course; buy if it's for years
- Can I debug on a real iPhone with a remote Mac?
- Can I finish a beginner Swift course on a rented Mac without owning one?
- Is Xcode laggy on a remote Mac?
- Will typing Swift and SwiftUI previews over remote desktop feel laggy to a beginner?
Use case
This question belongs to the use case: Learn Swift and Xcode without a Mac? Rent to try it or take a course; buy if it's for years
Other questions in the same use case:
- Swift Playgrounds on a rented Mac: should I learn it or Xcode first?
- How do I hand in Swift homework from a remote Mac or copy it to my own computer?
- Learning Swift: rent a remote Mac or buy a used Mac?
- How far can I get learning Swift with only an iPad and Swift Playgrounds?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support