MacOS was available before Xcode and GateKeeper, tooNot sure what the point was, unless you thought I was talking about macOS prior to today. Because I didn’t really spell it out when I was writing.
The point is the onus is on Apple to keep critical bugs like this out of their OS, which was required of them before they developed the concept of siphoning a percentage of revenue off independent software developers with an app store.