Jump to content

I recently tried to install Hackintosh into my CoffeLake Desktop and failed to do so... Same with my CoffeLake notebook. So I gave up. VirtualBox was also unusable with Big Sur.

I am mobile app developer and I need newest Xcode (which runs only on MacOS 11 Big Sur), but I am Windows user.

My girlfriend have 2017 MacBook Air at home so I installed Xcode there and successfully built my app for iOS (I am developing in React Native, so I really need just to clone repo and build on Mac, no development here).
Now I am wondering if I can create some kind of "build server" from this Mac on my local network, so I will be able to build iOS app remotely from my Windows machine.
I was thinking about SSH remote control but that will not be as automated as I need and also I am not sure if you can force Xcode to build from command line...

 

 

Any ideas how to achieve this remote building on Mac from Win machine?

Fullstack developer & Electrician & PC HW lover!

Link to comment
https://linustechtips.com/topic/1366403-macos-big-sur-xcode-build-server-how-to/
Share on other sites

Link to post
Share on other sites

If you've got an iPhone, you can do this via Shortcuts. Setup a nice build script on the MacBook, then create shortcut that logs in a runs that script.

 

If you were on Linux, this would be easy to do via an alias as well. If you're good at PowerShell there's probably a way you can in single script log into some machine via ssh and run a command. 

 

If there's no way to get a nice alias in PowerShell, then the other option is to leverage git and cron on the Mac. Keep the main branch on your Mac and then add something like git status -uno to the beginning of the build script, and have it only continue if there is actually some difference. Then you can use cron to run your build script every minute, five minutes, whatever works best for you.

 

edit:

 

Just after posting this, I though of another option which would probably be easiest. Write a script to do this whole thing in go. The ssh library looks pretty good, though I've never used it myself.

Edited by maplepants
Added golang option
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×