I was making a game with swift and sprite kit (my first try), I don't know if it's relevant to the problem, but suddenly I couldn't code sign I keep getting this error : (it was working perfectly like 5 mins before)
I've checked everything played with the code signing build settings, my account in the preferences but It didn't help
Cleaning the project and restarting the computer fixed the problem