how do I solve the Command /usr/bin/codesign failed with exit code 1 error?

I've tried to reissue new developer certificates and i keep getting this error "Command /usr/bin/codesign failed with exit code 1" when i try to build my app

Which version Xcode on what macOS?

how do I solve the Command /usr/bin/codesign failed with exit code 1 error?
 
 
Q