Closed hao-li closed 6 years ago
This problem occurs for me too trying to reinstall after Xcode update. I've tried:
update_xcode_plugins
update_xcode_plugins --unsign
rm XcodeSigner.p*
I still always get:
XcodeSigner: no identity found
I updated Xcode to 9.3 and retried the installation. Same problem occurred.
Alcatraz successfully installed!!1!🍻 Please restart your Xcode (9.3).
<snip>
XcodeSigner: no identity found
I'm having the exact same issue after updating to Xcode 9.3 (9E145) on High Sierra 10.13.4
Same issue here
Can you run this command and see if it works now:
cd ~/Desktop && curl -fsSL https://raw.githubusercontent.com/wakatime/xcode-wakatime/master/install.sh | sh
It still results in XcodeSigner: no identity found
@michaelgill1969 can you delete any existing XcodeSigner keys and certs from your Mac's system keychain using the Keychain app, then reinstall the plugin?
Deleting XcodeSigner keys and certs still resulted in XcodeSigner: no identity found
If you import the private key, public key and cert manually into keychain app does the install script finish code signing ?
I don't know how to do that. When I try to import the XcodeSigner.p12 that the script generates with Keychain Access, it asks for a password.
That's right, it should be your OS X login password.
It does not accept my login password.
I start by deleting XcodeSigner keys and certs with Keychain Access and Terminal rm, then I run:
sudo curl -fsSL https://raw.githubusercontent.com/wakatime/xcode-wakatime/master/install.sh | sh
Then, the XcodeSigner private key shows up in Keychain Access, but not the public key or the cert. XcodeSigner.p12 and XcodeSigner.pem show up in my home directory where I ran the script. I can import the certificate using Keychain Access. However, when importing the p12 file, it fails three times and I get the message
MAC verification failed during PKCS12 import (wrong password?)
I did reveal the password I was entering and I am sure it was typed correctly.
Oh sorry, that password is : xcodesigner
Thanks. It accepts that password, but the import of XcodeSigner.p12 fails with the following message:
An error has occurred. Unable to import an item. The contents of this item cannot be retrieved.
I'd suggest next try deleting the local XcodeSigner p12 and pem files then re-download them from https://github.com/wakatime/xcode-wakatime and see if those can be imported successfully.
The files from GitHub produce the same result:
An error has occurred. Unable to import an item. The contents of this item cannot be retrieved.
I've gotten code sign to start by deleting all keys named "Imported Public Key" in Keychain Access, plus the XcodeSigner private key and certificate.
Yes, I was able to resolve the issue on my system following the recent Xcode 9.3 update as follows:
rm XcodeSigner.*
just in casesudo curl -fsSL https://raw.githubusercontent.com/wakatime/xcode-wakatime/master/install.sh | sh
This should result in the following:
Resigning /Applications/Xcode.app, this may take a while...
/Applications/Xcode.app: replacing existing signature
You can check Activity Monitor to see if codesign is running. If so, you should be on your way.
@alanhamlett Thanks for all your help!
I followed the steps that solved the problem for you but I still get the same error XcodeSigner: no identity found
EDIT: So I still get the error but Wakatime seems to be working now. So your solution does work. Thanks!
@michaelgill1969 this solved it for me
@michaelgill1969 Solved it here too. Thanks!
I followed the steps that solved the problem for you but I still get the same error XcodeSigner: no identity found
For who followed the steps but also get the error: XcodeSigner: no identity found
Please, check these steps carefully:
this solved it for me
93441ab77c88291bf75211a178d484a22ad0c066 renames the self-signed cert to XcodeSigner2018
to prevent any import errors for those who already had the plugin installed. Now the steps above shouldn't be necessary, just running the install script should work for everyone:
sudo curl -fsSL https://raw.githubusercontent.com/wakatime/xcode-wakatime/master/install.sh | sh
你能运行这个命令,看它现在是否有效:
cd ~/Desktop && curl -fsSL https://raw.githubusercontent.com/wakatime/xcode-wakatime/master/install.sh | sh
thank you very much!
I have replaced the real home path and user name in the log with $HOME and $USER.