Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

codesign "The operation was cancelled by the user"

For some reason, whenever I try to codesign in xcode, I am getting this error

(path to app): The operation was cancelled by the user. Command /usr/bin/codesign failed with exit code 1

like image 621
Bob Bobbio Avatar asked Oct 31 '10 08:10

Bob Bobbio


3 Answers

I had this error after I changed my login keychain password, and my developer certificate was in this keychain.

I restarted and unlocked the keychain again and all was well.

like image 80
freespace Avatar answered Nov 19 '22 13:11

freespace


I spent hours trying to figure out why I was getting "The operation was cancelled by the user. Command /usr/bin/codesign failed with exit code 1".

I tried locking and unlocking all my keys (be sure you know the password first) and it fixed the problem.

Thanks to the contributors above for this advice.

like image 33
Perry Power Avatar answered Nov 19 '22 14:11

Perry Power


For some reason, I restarted my computer and the error went away.

like image 33
Bob Bobbio Avatar answered Nov 19 '22 13:11

Bob Bobbio