Command CodeSign failed with a nonzero exit code

Hi,
I am brand new to Xcode and I keep on getting an error message saying "Command CodeSign failed with a nonzero exit code". I am not enrolled in the Apple Developer Program. Does anyone know how to fix this?
Answered by TrashDealer in 668608022
I have actually found the answer to my own question but for anyone else that is having the same problem as me, you should clean up your project with shift + command + k which is what solved my problem
Accepted Answer
I have actually found the answer to my own question but for anyone else that is having the same problem as me, you should clean up your project with shift + command + k which is what solved my problem
You are a live saver

Clearing the build doesn't always remove the final .app Sometimes I have had to delete the .app by hand otherwise the build fails again. Please apple fix this, I'm sure its wasted countless hours of dev time.

Command CodeSign failed with a nonzero exit code
 
 
Q