I tried it a couple of years ago and it was pure pain. Apple's vendor login forces to buy and use XCode.
I honestly think apple and their excellent marketing and previous decent hardware alternatives, is one of the worst things to happen to consumer computing. It served the "not Windows"-itch for a couple of decades, drawing driver and software manufacture towards a closed OS. Sometimes I think about what could have been. Hopefully getting there, just much more slowly.
Apple Silicon seems like a pretty decent current hardware alternative, for some use cases at least
> It served the "not Windows"-itch for a couple of decades
For many people it also served the the Apple II, and pre-Windows-3 Macintosh, and iPod, and iPhone, and iPad, and Apple Watch, and AirPod itches, etc..
https://github.com/kubkon/zig-ios-example
For debugging you'd still need a Mac and iOS device though, so for the regular development workflow using a Mac still makes sense. But for CI builds being able to build on Linux is pretty big deal.
https://github.com/jaysoffian/eap_proxy/blob/master/eap_prox...