Could not export identity from the keychain

Miroslav Kuťák picture Miroslav Kuťák · May 26, 2014 · Viewed 17.6k times · Source

While exporting Code signing identity from Xcode 5, Preferences->Accounts I get the error upon saving "Could not export identity from the keychain".

What can it be?

Edit:

The login.keychain is unlocked. The account of the profile I want to export is connected and also present in login.keychain.

Console.app output:

31/05/14 15:23:06,879 Xcode[489]: Error, Could not export identity from the keychain: The user name or passphrase you entered is not correct.

Answer

Miroslav Kuťák picture Miroslav Kuťák · Jul 17, 2014

The solution is to lock the login keychain, so you can actually be prompted for the keychain password and then export it. If it's unlocked I just keep getting the error despite the password shall be correct - the keychain is unlocked, right?

So lock and export.