You might have curiously switched on Xcode Server and now the hammer icon refuses to go
In order to quit/stop Xcode server you just need to turn it off from Xcode preferences.
Go to Preferences
Go to Server and Bots and switch it off
Once off the hammer icon will go away (might take some time or after a restart) 🙂