Access to keychain item cannot be given permanently

Number:rdar://29880218 Date Originated:05-Jan-2017 10:58 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.2.1 (8C1002)
Classification:Other Bug Reproducible:Sometimes

While Xcode is open, macOS keeps periodically prompting to allow Xcode access to the keychain item (see the attached screenshot). Despite having selected “Always Allow” multiple times, and having verified that the correct access permissions are set in both the login and system keychain for this item, the prompt keeps reappearing. In my experience this typically happens when the system wakes up from sleep while Xcode is open.

Steps to Reproduce:

Open a project in Xcode, put the system to sleep and wake it up again. (might not be reproducible in every configuration)

Expected Results:

As soon as I select “Always Allow”, I would no longer be prompted to allow access to 

Actual Results:

The prompt to allow access to keeps reappearing. 


Happens with Xcode 8.2.1 (8C1002), but I could observe the same with previous versions of Xcode 8. 


There are many other reports about this problem floating around online (see for an example). Some sources list possible workarounds, but so far nothing managed to permanently solve this issue for me.



Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!