codesign “The operation was cancelled by the user”

核能气质少年 提交于 2019-11-27 03:47:21

问题


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


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/4062285/codesign-the-operation-was-cancelled-by-the-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!