Mac app validation fails due to entitlements issue

294 Views Asked by At

I am trying to distribute a version of my Mac app outside the Mac App Store. I have duplicated my target, signed it with "Developer ID", removed iCloud capabilities, created a new entitlements file in which I removed the iCloud and APS entitlements and referenced this in the new target. The target builds and archives just fine, but when I attempt to validate it using "Validate a Developer ID-signed Application", I run into an error:

enter image description here

Just before the validation step, there is this screen: enter image description here

So the app bundle has the correct number of entitlements, but the "A" folders are showing a different number, and do indeed contain the com.apple.developer.aps-environment entitlement. Where is this coming from, why is it different from the app's specified entitlements file, and how do I go about editing it?


EDIT: adding target's code-signing settings in Xcode, if that helps:

enter image description here

1

There are 1 best solutions below

4
On

have you checked your app before=hand with using :

spctl -v -a ./myPath/To/MyApp

-v = verbosity and -a = assess

That will check pretty much most things before presenting it to Apple.

On top of that, have you checked that your signing settings are correct?

Could you post the settings to us so we could see?

Cheers,

A