Error (no identity found) when codesign

Hello,


I am getting this strage error (no identity found) when codesigning from the Terminal I am using this command:


sudo codesign -f -s "Mac Developer: xxxxxxxxx@gmail.com (VVVXXXXX)" -v /usr/local/gcc-8.2/bin/gdb-8.2


But the strange thig is, if I use another certificate it works, or if I move the app to the Desktop and only to the Desktop...

Accepted Answer

What platform are you building for?


Do you have a paid Developer Program account?

I am using Mac OS X 10.11 (El Capitan), and Xcode 8.2.1. I found out that it will work fine on other application with no errors in the same location...


I have only a Developer account.

---- Solved ---


I found the solution to the codesign error: hade to replace the double quotes with single quotes, and it worked...


sudo codesign -f -s "Mac Developer: xxxxxxxxx@gmail.com (VVVXXXXX)" -v /usr/local/gcc-8.2/bin/gdb-8.2


to


sudo codesign -f -s 'Mac Developer: xxxxxxxxx@gmail.com (VVVXXXXX)' -v /usr/local/gcc-8.2/bin/gdb-8.2

Error (no identity found) when codesign
 
 
Q