Home/Q&A/How do I hand in Swift homework from a remote Mac or copy it to my own computer?

How do I hand in Swift homework from a remote Mac or copy it to my own computer?

Updated · airankrush

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.

Information as of .

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

  1. Sign up for an account on a code repository platform and create a private repository for your coursework.
  2. Link the project to that repository in Xcode, and commit and push every time you finish working.
  3. 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.
  4. Download it once on your own computer and confirm that the zip file opens and all the files are there.
  5. At the end of term or before the rental ends, check once more that all homework has been sent out.

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:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A