Just installed 10.12 and Xcode 8 codesign command fails even from terminal with A cryptographic verification failure has occurred. and no further detai
codesign
A cryptographic verification failure has occurred.
This Chinese website helps me to solve that issue.
Launch "Keychain Access", go to "Preferences..." and click "Reset My Default Keychain". After that I was finally able to build my projects.