Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Sandbox capability missing in Xcode project

According to this guide, there should be an App Sandbox capability in the project file:

enter image description here

However, for some reason my app project does not have any App Sandbox capability that I can turn on:

enter image description here

Why is it missing, and how can I get it there?

like image 420
inhwrbp Avatar asked Mar 25 '19 20:03

inhwrbp


People also ask

How do I enable sandbox on my Mac?

To ensure the App Sandbox is in an enabled state, launch your macOS app using Xcode. Then, open /Applications/Utilities/Activity Monitor. app and choose View > Columns > Sandbox to display the Sandbox column. Find your app in the list of running processes and confirm the value in that column is Yes.

What is app sandbox in Xcode?

Android sandboxThe Android platform isolates apps from each other and protects them -- and the overall system -- from malicious apps and intruders. Android assigns a unique user ID (UID) to each application to create a kernel-level sandbox. This kernel ensures security between apps and the system at the process level.

How do I enable sandbox on my Iphone?

Sign In to the App Store with Your Sandbox Apple ID In iOS and iPadOS, the sandbox account appears in Settings > App Store after the first time you use the device to attempt a purchase in a development-signed app. There's no need to sign out of the non-Sandbox Apple ID. Sign in using a Sandbox Apple ID.


2 Answers

First of all, you should open the ***.entitlements file. In this file, add a Key named App Sandbox and changed Value to YES.

After completing the above steps, click command + b then go back to Signing & Capabilities, the App Sandbox will appear.

like image 175
Jeff Yang Avatar answered Oct 21 '22 05:10

Jeff Yang


If your Apple provisioning profile is missing the App Sandbox entitlement then it won't show up in xcode.

FYI - you can add manually to entitlement file, however it wont let you build unless described in your provisioning profile. Same goes for ditribution as well.

To Add entitlement > Open *.entitlements file as source code > add the following code.

<key>App Sandbox</key> <true/>

You can regenerate the provisioning profile with the desired capabilities, if you are the admin/team agent of the Apple store project.

hope this helps.

like image 35
Rahul Kumar Avatar answered Oct 21 '22 04:10

Rahul Kumar