How to enable sandboxing in framework

Hi,

I have created a macOS framework using XCode 11.4.1 with swift and would like to enable sandboxing in framework however XCode is saying that Capabilities are not supported for "*" . Please see the below screenshot for more information.


Please let me know my framework is store compatible with regards to sandboxing if not then how I can enable the sandboxing in framework(Framework uses CoreWLAN , Security and System Configuratuion framework APIs).

Or

macOS application which is going to integrate my framework, must enabled sandboxing for App Store compatibility.

...

Thanks & Regards,

Mohmad Vasim

Answered by DTS Engineer in 416071022

It doesn’t make sense to enable sandboxing in a framework. The App Sandbox, as the name suggests, is an app-level feature, and thus can only be enabled by an app. If a framework is loaded within a sandboxed app, the framework is subject to that app’s sandbox.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer

It doesn’t make sense to enable sandboxing in a framework. The App Sandbox, as the name suggests, is an app-level feature, and thus can only be enabled by an app. If a framework is loaded within a sandboxed app, the framework is subject to that app’s sandbox.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
How to enable sandboxing in framework
 
 
Q