I solved this with a Mac Mini that lives at home on my desk and was only used for the occasional bit of testing, debug and publishing (I was building using Flutter).
https://github.com/myspaghetti/macos-virtualbox
Or you can lease them online:
GitHub has some kind of Mac hardware or virtualization for their Actions too so you could probably wire something up to build on GitHub:
One of the main selling points that Apple uses to sell Mac minis is their use in build farms and render farms.
If you click on Apple's page on Mac minis and scroll down until the 6th or 7th selling point, you'll end up seeing the part where according to Apple it's combination of stackable form factor and performant hardware makes it ideal to compile large xcode projects or perform video encoding.
> Can't do iOS development
Not legally, no. These can be worked around with a VM, just like with the Windows issue. It sucks, but Apple is never going to support their development toolchain on any other platform.
All in all, I think this is a pretty positive review for an "I switched to Linux" blog post. Usually they're more negative about the lack of finish a lot of Linux tools use, but the author of this blog seems to be more tolerant towards the small things in order to gain the big things.