iOS Provisioning profile doesn't include sandbox entitlements

Hi, I'm getting the following error while uploading the iOS build from Xcode:

Profile doesn't include the com.apple.security.app-sandbox and com.apple.security.files.user-selected.read-write entitlements

I have also created an .entitlements file turning on both sandbox and user selected rights. 

I can also see the required entitlements in signing and capabilities tab under app's target section. 

I have also tried deleting all provisioning files from

~/Library/MobileDevice/Provisioning\ Profiles/

and re-downloading them again.

The build is getting succeeded but I'm not able to upload it to app store connect.

Any help or suggestions will mean a lot. Thanks!

I’m confused. The App Sandbox entitlement (com.apple.security.app-sandbox) only make sense for a macOS app. The sandbox is optional on macOS and this entitlement opts you in. Other sandbox entitlements let you configure the sandbox in various ways.

On iOS the sandbox is neither optional nor configurable — all third-party apps get the same sandbox — and thus these entitlements are neither required nor allowed.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

If App Sandbox is any way related to In App Purchases

Ah, that’s a common cause of confusion:

  • App Sandbox is a macOS technology to run apps in a more secure environment, similar to the default environment used by all apps on iOS. For more details, see App Sandbox and App Sandbox Design Guide.

  • In the in-app purchase world, the term sandbox refers to the in-app purchase test environment, where you can try out your in-app purchase code without spending any money. For more details, see the Testing In-App Purchases section of In-App Purchase

I’m not an expert on in-app purchase, so all I can do here is re-tag your question in the hope that relevant folks will see it.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

iOS Provisioning profile doesn't include sandbox entitlements
 
 
Q