Hi,
since some days I am trying to create a signed paket installer with javapackager to publish my Java App in the Mac Store. This is, what I have done so far:
1. I have requested the certificate for the app and the installer and added them to the keychain
2. create the icon file
3. create the entitlements file (it’s just a test app, so only sanbox):
4. create PKG:
So far, so good ...
The task proceeds without problems, but when I try to upload the PKG file via Application Loader, I get the following error messages:
I generell there are not that much information on this topic, this is what I have found so far:
Thank you.
Jan
Btw.: I have posted this question also on stackoverflow four days ago. I will synchronize both threads when I get a new hint or even the solution.
since some days I am trying to create a signed paket installer with javapackager to publish my Java App in the Mac Store. This is, what I have done so far:
1. I have requested the certificate for the app and the installer and added them to the keychain
2. create the icon file
3. create the entitlements file (it’s just a test app, so only sanbox):
B4X:
<?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>
4. create PKG:
B4X:
javapackager -deploy -srcFiles Test.jar -native mac.appStore -BsystemWide=true -title Titel -name Name -outdir /Users/mac/Desktop/ -outfile temp -BappVersion=1.0.0 -appclass app.example.main -Bidentifier=app.example.main -Bicon=/Users/mac/Desktop/App.icns -Bmac.app-store-entitlements=App.entitlements -Bmac.category=public.app-category.business
So far, so good ...
The task proceeds without problems, but when I try to upload the PKG file via Application Loader, I get the following error messages:
- ERROR ITMS-90511: "CFBundleIdentifier Collision. The Info.plist CFBundleIdentifier value 'com.oracle.java.8u131.jdk' of 'Name.app/Contents/PlugIns/Java.runtime' is already in use by another application."
- 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: [( "app.example.main.pkg/Payload/Name.app/Contents/MacOS/Name", "app.example.main.pkg/Payload/Name.app/Contents/PlugIns/Java.runtime/Contents/Home/jre/lib/jspawnhelper" )] Refer to App Sandbox page at .apple.com/devcenter/mac/app-sandbox/ for more information on sandboxing your app."
I generell there are not that much information on this topic, this is what I have found so far:
- http://speling.shemnon.com/blog/2014/04/10/getting-your-java-app-in-the-mac-app-store/ --> same error
- http://www.intransitione.com/blog/take-java-to-app-store/ --> AppBundler is not maintained anymore
Thank you.
Jan
Btw.: I have posted this question also on stackoverflow four days ago. I will synchronize both threads when I get a new hint or even the solution.