我有一个Java应用程序,在一个包.app中转换,然后在一个pkg中,以便能够在App Store中发布。
他们告诉我这个:
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
显然,我没有使用XCode,因为它是一个Java应用程序。
如何为这两个文件创建entitlements.plist?
AFAIK entitlements.plist需要这个:
<?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>
但我不知道将它放在哪里...在根文件夹中?那他们为什么要问我这两个特定文件的权利呢?
谢谢
答案 0 :(得分:1)
在您的proyect的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>