You may be prompted "Codesign Wants to Access Key in Your Keychain" during codesign process. To resolve this, you should set the related key's Keychain Access Control setting to "Always Allow."

  1. Open Keychain Access in Applications > Utilities > Keychain Access
  2. Highlight "Login" Keychain
  3. Find the key or keys you wish to allow codesign to access
  4. Right-click the key item, and select "Get Info"
  5. Click on the "Access Control" tab
  6. Select "Always Allow"
  7. Press "Save Changes" to confirm the change

This should allow codesign to access the key you selected to always allow access. Repeat the above steps on all keys you wish to always allow access.