I'm trying to learn to load apps on my iPhone from Xcode. When I do I keep getting "Codesign wants to access key "access" in your keychain, I put I my login password but it keeps popping up over and over. I've tried my computer login so many times, apple account password, and many others.
23 Answers
Solve this problem by doing this.
Enter your Mac Login Password and Choose "Always Allow"
One or More dialogs opened and positioned in the same dialog, repeat step 1 until all dialogs closed. (So you thought your password wrong but repeat "Always Allow" with your Mac login password tricky part :) )
Hope it will work.
I pressed Deny by mistake and I was stuck, no way to code sign any Pods.
This is how I solved the problem:
- Open the keychain
- look for the key
com.apple.gs.xcode.auth.com.apple.account.AppleIDAuthentication.token
- open it
- click on the Access Control tab
- at the bottom there's Always allow access for these applications: -> add Xcode in the list
- Don't forget to press
Save Changes
I encountered this running a brand new project. Neither the Allow or Always Allow button seemed to work, however it wasn't giving me the 'incorrect password' shaking feedback. What was happening was that there were multiple dialog boxes all in the same position, so as I entered a password and clicked Allow nothing changed visually. I ended up having at least 3 dialogs all stacked up on each other, which I only discovered when I tried dragging the dialog. Entering passwords into each of them let my project finish building.
Following worked for me!
- open keychain-management on your Mac
- select "login" on the left pane
- look for the key which is causing this issue. Mine was iOS Developer...
- double-click the key and select "Allow access to all programs" in the access column
Restart Xcode and try to build again. It will ask you again but with the additional option to "Always allow. Enter your macOS user password as password and press "Always allow".
Let me know if it worked for you.
The same dialog asking for the KeyChain password has 3 buttons. Most likely the wanted password is that for logging in to your Mac. If you press "Allow" it only works for some tiny aspect and will ask again, which is very puzzling. You need to press "Always Allow". The verification team at Apple is very weak, they need some 'normal' developers in the design team for the chain of events to get an app in the app store. Normal developers have very sketchy ideas about KeyChains and Certificates and Profiles.
Okay Guys, after literally 2,5 hours of trying to fix that error I managed to find a solution that worked on my two Mac Machines. These are the steps I did:
- Open Xcode -> Preferences
- Go to the Accounts Tab
- Click the button on the bottom right telling 'Manage certificates'
- Look for the name of the certificate
- Open the keychain manager
- Select in the menu the Sign-In tab
- Do a right-click and then delete on the certificate that was named in the Xcode settings page before
- Go back into Xcode and see Xcode creating a new certificate(The window will be empty for a couple of seconds and then there will a new certificate lighten up.
- Rerun your app
I hope that could help you guys. It helped me a lot! :)
Liam
As of August 31, 2018.
Resolving:
1. Search Keychain Access
2. [KEYCHAIN] Login | [CATEGORY] Passwords
3. Look for you email address and double click. <it might not be necessary but just try this>
4. [ACCESS CONTROL] choose "allow all application to access this item".
5. Rebuild to your phone. If you have error choose a virtual device and build (to reset the build objects). Then choose to rebuild to your phone again.
In my case, I didn't have the 3 buttons described in the other answers ("Allow", "Always Allow", "Deny"). I only had an "OK" button.
I tried entering the following passwords:
- Login password, the one I use to login to my Mac.
- Apple ID, the one I use to authorize App Store purchases and login to my iCloud.
- Apple Developer ID, the one I use to login to App Store Connect.
But none worked.
What did work, strangely, was leaving the password text field empty.
Always Allow
when you finished input password – Johnny/Users/username/Library/Developer/Xcode/DerivedData
. Third, restart your mac. Forth, open Xcode, run a project, always allow the Xcode accesses KeyChain. – Johnny