I haven\'t been able to find a definition for this error in relation to codesigning. I\'m really quite stumped as of what to do.
The error occurs when attempting to exec
I've encountered this in Xcode 8.3.2 when I inadvertently wound up with duplicates of my signing certificates. @kristina's answer gave me the clue; $ security find-identity -v
showed me two entries with identical hashes. I fixed it by deleting the first certificate in the list with that hash, via:
$ sudo security delete-certificate -Z