Access to com.apple.dt.XcodeDeviceMonitor keychain item cannot be given permanently

Originator:matej
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
 
Summary:

While Xcode is open, macOS keeps periodically prompting to allow Xcode access to the com.apple.dt.XcodeDeviceMonitor 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 com.apple.dt.XcodeDeviceMonitor. 

Actual Results:

The prompt to allow access to com.apple.dt.XcodeDeviceMonitor keeps reappearing. 

Regression:

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

Notes:

There are many other reports about this problem floating around online (see https://forums.developer.apple.com/thread/64863 for an example). Some sources list possible workarounds, but so far nothing managed to permanently solve this issue for me.

Comments

Screenshot

https://cloudup.com/cVkovbsNPoD


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!