According to this guide, there should be an App Sandbox capability in the project file:
However, for some reason my app project does not have any App Sandbox capability that I can turn on:
Why is it missing, and how can I get it there?
According to this guide, there should be an App Sandbox capability in the project file:
However, for some reason my app project does not have any App Sandbox capability that I can turn on:
Why is it missing, and how can I get it there?
On
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.
Add missing App Sandbox capability
(Straightforward to do but a pain to remember.)
.entitlementsfile, create a new one:View>Navigators>ProjectFile>New>File...Property ListtemplateMYPROJECT.entitlements.Select the file in the Project navigator sidebar.
Add a new row (via the
(+)symbol, just as you would for a.plistfile.)key:
App Sandboxtype:Booleanvalue:YESThis is the same as editing the source code (file contents) to be:
Menu:
View>Navigators>ProjectSelect the root level (project icon) of your project
In the
project and targets list(left sidebar within the editor), select the target under TARGETS (not the Project)In the editor area, select the
Build SettingstabSelect
All(show all build settings), notBasicIn the list, find
CODE_SIGN_ENTITLEMENTSSet its value to the location of the
.entitlementsfile. If you created it at the root level of the project, this is just the filename, otherwise the relative folder path.Example:
butterflies.entitlementsExample:butterflies/butterflies.entitlementsI recommend then doing a
Clean Build Folder, select a suitable build platform and doing a ProductBuildorRun.Caveat:
App Sandboxcan be missing for other reasons but this is the most common one I come across.