Rights files in a Java application for publishing to the App Store

I have a Java application converted to an .app package and then to a pkg to be able to publish to the App Store.

They told me this:

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. Refer to the App Sandbox page for more information on sandboxing your app.

MyApp.app/Contents/MacOS/JavaAppLauncher
MyApp.app/Contents/PlugIns/jdk1.7.0_67.jdk/Contents/Home/jre/lib/jspawnhelper

      

Obviously I am not using XCode as it is a Java application.

How do I create an entitlements.plist file for these two files?

AFAIK access requires:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>com.apple.security.app-sandbox</key>
        <true/>
    </dict>
</plist>

      

But I don't know where to put it ... in the root folder? Then why did they ask me about the rights to these 2 specific files?

thank

+3


source to share


1 answer


Creating this file in your site's ROOT folder:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
</dict>
</plist>

      

+1


source







All Articles