I have faced with this erros !
/usr/bin/codesign failed with exit code 1
I am read 10000000 ways to solve this problem I don't know why doesn't fix !!!!
For example :
I checked CODE_SIGNING_IDENTIFY and matches with my provising profile !
On Info.plist target the left side option is UNCHECKED
I create this profile step by step with IOS DEV CENTER wizard
my keychain is valid and is login
THIS DRIVE ME CRAZY !!! I DON"T KNOW WHAT SHOULD I DO I NEVER THIS PROBLEM