by twobitshifter · 5y ago · 0 comments
You can download the Mojave installer directly from Apple:
% softwareupdate --fetch-full-installer --full-installer-version 10.14.6
A few days back I was searching around for how to download old macOS/OS X versions, so that I could run a VM to test my app [0]. For the first hour or so, all I could find was sites that linked to the official App Store downloads for the last 3 OSes, which didn't work. The page would open in the App Store app, I'd click "Get", and it would say that it wasn't found.
This command unfortunately did the same, which makes me wonder if this is something to do with my Apple account, or maybe that they've taken down those downloads?
What ended up working for me was dosdude's patchers:
10.12 Sierra: http://dosdude1.com/sierrapatch.html
10.13 High Sierra: http://dosdude1.com/highsierra/
10.14 Mojave: http://dosdude1.com/mojave/
10.15 Catalina: http://dosdude1.com/catalina/
These tools are meant for patching old OS X versions to run on unsupported Macs, but that wasn't the feature I needed. The important thing for me was their "Download" button, which downloads the installer directly from Apple's servers.
It was a huge relief and I was finally able to test my app properly on older (virtualized) OSes using Parallels [1], which was even having a sale at the time (maybe still?).
0: my app is Recut, an automated video editor - https://getrecut.com - which supports back to 10.13 High Sierra
Sorry, the option requires Catalina or higher. Just tested under Big Sur:
% softwareupdate --fetch-full-installer --full-installer-version 10.14.6
Scanning for 10.14.6 installer
Installing: 16.0%https://gist.github.com/meyer/b14c87d162366f0428a99cd2ff0d0b...
There's also this interestingly named tool which essentially automates the process: https://github.com/corpnewt/gibMacOS
That gib tool looks helpful, and... wow, I haven't seen that word since the Quake days!
EDIT: additionally, I’d recommend going for a version of Xcode as close to the version used for developing the software you’re interested in as possible — balancing out what version of Mac OS (you have / are targeting / most up to date) is compatible with the versions of Xcode close to it. Some major Xcode updates will break compilation and you’ll have to fix minor issues to move forward, which could be brutal in a larger codebase.