I have a bundle file called xxxx.app that works with productbuild to produce xxxx.pkg file and the resulting application works well on my computer. However attemps to upload it to Apple using Application Loader produces the following message:
ERROR ITMS-90296: "App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list: [( "xxxx.pkg/Payload/xxxx.app/Contents/MacOS/xxxx" )] Refer to App Sandbox page at https://developer.apple.com/devcenter/mac/app-sandbox/ for more information on sandboxing your app.”
I also have a file called entitlments.plist that includes for the sandboxing: com.apple.security.app-sandbox. I have tried including this in the xxxx.app bundle under Contents and also Contents/Resoures but it does not seem to make any difference.
How should the entitlments be incorporated in the productbuild?
The help documents mentioned in the error message do not seem to address this question.
Any suggestions would be appreciated.