Home/Q&A/Will the first dependency download for a large project be slow on a remote Mac?

Will the first dependency download for a large project be slow on a remote Mac?

Updated · airankrush

Direct answer

The first time is slow, and it is a one-off. The whole machine is dedicated to you during the rental term, so downloaded tools and dependency caches stay on it. Unless you clear them yourself, later builds do not download everything from scratch.

Basis

  • The first-time downloads come in layers: Xcode itself and the iOS simulator runtime; the framework's own toolchain (the Flutter SDK, Node and so on); project dependencies (CocoaPods libraries, Swift packages, npm or pub packages); and the repository itself. The first two layers are the largest but have nothing to do with your project, so you can start them the day you get the machine.
  • Download speed depends on the route from this machine in the United States to each source server (Apple, GitHub, the package managers' servers) and has nothing to do with your local connection speed. The machine is on residential broadband, the broadband may be shared with other machines, and speed is affected by the line and its load. We have no measured data and make no promise about how long it takes.
  • Each cache has its own location: CocoaPods keeps a local cache, Swift packages and intermediate build products sit in Xcode's DerivedData folder, and Gradle, npm and pub each have their own cache folders. When cleaning up the disk, do not delete all of these along the way, or the next build has to download again and compile from scratch.
  • Committing lock files (Podfile.lock, Package.resolved and the other lock files) to the repository lets dependency resolution download fixed versions directly. That saves the time of repeatedly querying versions and keeps the remote Mac from resolving versions different from the ones on your own computer.

Information as of .

Boundaries: when the answer is different

Things are different if one of your dependency sources is itself unreliable when reached from the United States, or if the project depends on a private registry inside your company network. Customers are not allowed to change the machine's network configuration, and you should not install tools on it that change its network exit. If you need to reach internal systems that only accept restricted sources, this machine may not be suitable; check with support before ordering. The asset repositories of large game projects are very big, and the time and disk space of the first sync need to be estimated separately.

How to do it

  1. The first thing to do when you get the machine is start downloading Xcode and the iOS runtime, and prepare your account and certificates in the meantime.
  2. If the repository has a long history, clone only the recent commits and fetch the rest when needed.
  3. Run dependency install commands in Terminal; disconnecting the remote session does not stop them.
  4. If a download is interrupted, rerun the same command; most package managers skip what is already done.
  5. After everything is installed and one build has succeeded, note where each cache lives so you can avoid those folders when cleaning up the disk later.

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:

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

Back to home · All Q&A