macOS Sandbox capability cannot be turned off using the UI Switch

Originator:erndev
Number:rdar://28497594 Date Originated:27/09/2016
Status:Open Resolved:
Product:Developer Tools Product Version:8.0
Classification: Reproducible:YES
 
Summary:
In the Capabilities view of a macOS target, the switch to turn ON and Off Sandboxing does not turn it off.

The swift works when you want to turn sandboxing on, but later it does not turn it off. You have to disable it manually in the entitlements file.

Steps to Reproduce:
1. Select a macOS App Target and go to the Capabilities view
2. Turn on Sandboxing using the switch in that view. It works fine and the app is sandboxed.
3. Try to turn it off by clicking the switch or dragging it to the off position. 

Expected Results:
Sandboxing should be turned off.

Actual Results:
The switch control returns to the On position, and sandboxing stays activated.
From this point on, you can only turn off sandboxing by editing the entitlements file directly.

Version:
Xcode version: 8.0 (8A218a)
macOS version: 10.12 (16A323)

Comments


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!