Direct answer
You can. The homework is on the remote Mac's disk; push it to your own repository with Git, or send it out through cloud storage or email in the remote machine's browser. We suggest sending a copy out every time you finish working, rather than waiting until the end of term or just before the rental ends.
Basis
- Xcode has Git support built in. You can tick the option to create a repository when making a new project, and afterwards commit and push from the Source Control menu. If the teacher accepts a repository link, this is the least effort and doubles as your backup.
- When the teacher wants a zip file, right-click the whole project folder in Finder and choose Compress. Include the
.xcodeproj(or.swiftpm) and the source code folder. Intermediate files produced by building are not in the project folder by default, so there is nothing extra to track down. - How the zip file leaves the remote machine: sign in to your cloud storage or email in the remote machine's browser and upload it. Whether the remote-control tool itself supports file transfer, and how much the clipboard can carry, depends on what each client actually does, so do not treat it as your only channel.
- When the teacher wants to see the app running, the simulator's menu has screenshot and screen recording features. The files they produce are saved on the remote machine; upload them along with the zip file.
Boundaries: when the answer is different
If your school requires you to submit on the spot from a designated lab computer, or the homework has to be demonstrated on a real device in front of the teacher, a remote Mac cannot meet that. Backing up your data is your responsibility: after the rental ends the machine is erased and reinstalled, and homework you did not send out cannot be recovered. When signing in to cloud storage and email, we suggest an account kept just for learning, and remember to sign out before the rental ends.
How to do it
- Sign up for an account on a code repository platform and create a private repository for your coursework.
- Link the project to that repository in Xcode, and commit and push every time you finish working.
- When you need a zip file, compress the project folder in Finder and upload it to cloud storage or email through the remote machine's browser.
- Download it once on your own computer and confirm that the zip file opens and all the files are there.
- At the end of term or before the rental ends, check once more that all homework has been sent out.
Related questions
- Learn Swift and Xcode without a Mac? Rent to try it or take a course; buy if it's for years
- Do I need to back up the data on a remote Mac mini myself?
- Can I finish a beginner Swift course on a rented Mac without owning one?
- Does the iOS Simulator work on a remote Mac, and is it enough for learning?
- Renting a Mac for a Swift course: which rental term should I pick?
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:
- Will typing Swift and SwiftUI previews over remote desktop feel laggy to a beginner?
- 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?
- How far can I get learning Swift on Windows or Linux without buying a Mac?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support