Code sign Error -Command /usr/bin/codesign failed with exit code 1

I hope the steps mentioned in this post may helps you to resolve your issue

https://stackoverflow.com/questions/2017756/command-usr-bin-codesign-failed-with-exit-code-1