Error while uploading app to App Store connect

Hi,

We have trouble with uploading our app to the App Store connect. The screenshot shown below is the error that appears while uploading,

The error says that the app sandbox is not enabled. But the sandbox has been enabled in the targets as well as in the entitlements of both app and helper app bundle. The path [(“com.magnima.airpoint.pkg/Payload/MagnimaAirPoint.app/Contents/Library/Loginltems/

APHelper.app/Contents/MacOS/APHelper” in the error seems to be of the function SMLoginSetEnabled (https://developer.apple.com/documentation/servicemanagement/1501557-smloginitemsetenabled?language=objc#parameters) which we have used in the app to launch the same at login as per user consent. The previous version of the app had this feature and was uploaded and submitted to App Store successfully. 

Does it have any dependency with making the app compatible also for silicon based macOS also? Are there any additional settings that needs to be enabled? It would be great if we could get a solution for this.

Replies

It’s very likely that this error means what it says: Your Service Management login item is missing its App Sandbox entitlement.

But the sandbox has been enabled in the targets as well as in the entitlements of both app and helper app bundle.

Keep in mind that the .entitlements file is an input to the code signing process, not the final result. The entitlements are stored in the code signature. If you’ve enabled the App Sandbox in the .entitlements file and you’re still getting this error, it’s likely that something about the signing or exporting process is causing it to be dropped.

Do this:

  1. In the Xcode organiser, find the archive you’re trying to upload.

  2. Control click on it and choose Show in Finder.

  3. In the Finder, control click on it and choose Show Package Contents.

  4. Navigate to Products > Applications.

  5. Open a Terminal window in that directory.

  6. Use the following commands to dump the entitlements of your main app and the Service Management item inside your app:

    % codesign -d --entitlements - MagnimaAirPoint.app
    % codesign -d --entitlements - MagnimaAirPoint.app/Contents/Library/Loginltems/APHelper.app
    

What do you see?

Share and Enjoy

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