Isn’t that dependent on your private key stored on Apple’s equivalent to a TPM?
That said, lots of IDEs let you build on Windows/Linux, they just use a daemon running on a headless Mac on your LAN (or a rented “cloud” Mac) to do the code-signing part.
To be fair, Macs are one of the best choices out there, so I'm not complaining. The only thing that sucks on Macs nowadays for devs is how poor Docker is performing, even with all the workarounds like Docker-sync etc.
A few years ago I would've agreed but WSL is so damn good now that I honestly prefer it over developing on a Mac, particularly as it solves a lot of the performance issues.
At my previous job, I got hired to build VR apps for the HTC Vive on Windows, which was exactly what I wanted to do. But I only ever got assignments to build AR apps for the iPad[0]. So while nobody was physically putting a gun to my head, there was the ever present threat of not being able to provide for my family.
[0] And it didn't even make sense. I was making industrial equipment repair guide software. The first version of it I made for the Hololens, where it made sense, because, you know, you need your hands free to be able to actually enact the repairs. But you try telling that to a literally corrupt manager.
That said, lots of IDEs let you build on Windows/Linux, they just use a daemon running on a headless Mac on your LAN (or a rented “cloud” Mac) to do the code-signing part.