It sounds like you have entitlement issues. If you embed a executable within a sandboxed app it must have the
com.apple.security.app-sandbox
and
com.apple.security.inherit
entitlements, and only those entitlements [1]. You can learn more about this in the the [Enabling App Sandbox Inheritance][docs] section of the
Entitlement Key Reference.
https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW15
I recommend that you dump the entitlements of your built binary to see what’s what. You can learn more about that in Technote 2415 Entitlements Troubleshooting.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
[1] The other options is to have no entitlements, which is a compatibility path that gives you the same behaviour, but my experience is that this is frowned upon by the App Store submission machinery.