Direct answer
Use Git. Push the code from Windows to your Git repository and pull it on the remote Mac; sync every later change the same way. A zip archive sent through the remote-control client's file transfer only suits small one-off files.
Basis
- You do not need to install Git separately on the remote Mac. According to Apple's documentation, the first time you run a command such as
gitin Terminal on a fresh macOS install, the system prompts you to download and install the Xcode Command Line Tools; a full Xcode install also includes it. - There are two common kinds of credentials for pulling a private repository: HTTPS with an access token, or generating a new key pair on the remote Mac with
ssh-keygenand adding the public key to the repository's deploy keys. Both are outbound connections from the Mac and do not require changing the machine's network configuration. Grant read-only or single-repository access only, and do not copy the private key from your main computer onto it. - Projects that come from Windows have two common pitfalls. One is line endings: a script file that carries Windows line endings fails when run on macOS; you can set
eol=lffor*.shin the repository's.gitattributes. The other is the executable bit: Windows does not record this attribute, so you needgit update-index --chmod=+xto add it to scripts. For exact syntax, follow the official Git documentation. - Do not pack up and send directories such as
node_modules,Podsandbuild. They contain content compiled per platform; reinstalling dependencies on the Mac is the correct approach.
Boundaries: when the answer is different
If your company's code repository only allows access from fixed addresses, this route may not work: our machines use US residential broadband, the public exit may be shared with other machines, and it is not a fixed address. In that case find out your company's rules first. Whether the UU Remote and RustDesk clients support file transfer, and whether there is a size limit, depends on the current client version. We do not provide a way to log in to this machine's terminal from the public internet.
How to do it
- On Windows, confirm that
.gitignoreexcludes dependency and build directories, then commit and push. - Connect to the remote Mac, open Terminal and run
git --version, then follow the prompt to install the Command Line Tools. - Set up an access token or deploy key and
git clonethe repository. - Install dependencies on the Mac, for example
pod installorflutter pub get, then open the project and compile. - Commit any changes you made on the Mac to get it compiling and push them back to the repository, then pull on the Windows side so both stay in sync.
Related questions
- How do I build an iOS ipa for a Flutter app developed on Windows?
- How do I get the ipa and build logs from a remote Mac back to my computer?
- How to connect to a rented Mac mini from a Windows PC with UU Remote
- Coding on a remote Mac mini: remote desktop or terminal?
- Is Xcode laggy on a remote Mac?
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:
- Can I check build and App Review progress on a remote Mac from my phone?
- How to confirm a rented Mac is real Apple hardware, not a VM or modified PC
- How to check if a remote Mac's macOS can run the Xcode the App Store requires
- My remote Mac keeps asking for an Apple ID verification code I can't receive
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support