I am new here. I am trying to do a build and run in Xcode. I keep getting a popup that says: code sign wants to access key "Apple Development: David Smith (David Smith" in your keychain. I have already granted access in keychain access, yet this popup persists. I have tried entering the keychain password and my Apple ID password; neither one works. How do I get around this?
Codesign
Welcome! Glad to have you here. Will be great to always provide the Xcode version you are using and the macOS version as well.
I’m making a guess so please forgive me if I got it wrong, the prompt is not asking for your Apple ID password, nor is it asking for a specific developer password. It is asking for your local Mac user account password, the exact same password you type to unlock your computer. If you see the button, you should tap the Always Allow button to avoid the prompt being shown.
Another thought is If you downloaded a sample project, cloned a repository, or received this project from someone else, Xcode might be trying to sign the app using their developer certificate instead of yours. If you don't have the developer’s private key unlocked in your keychain, it will fail. Is that the issue?
Hope this is helpful to you.
Albert WWDR