I had a developer account, but I let it expire because I wasn't focusing on Swift anymore, until the other day when I was playing with something to do with Damus.
You can also build unsigned apps in XCode for macOS without an account, but you have to do the option-click method to make them run the first time, in order to get around GateKeeper.