Appbundler incompatible with 10.13?
Closed this issue · 3 comments
Original report by me.
When running ant test
on a fresh clone of the master branch using macOS High Sierra 10.13.6 (and Oracle JDK 1.8.0_202), the resulting Test.app fails to open (the dock icon briefly appears then closes). When calling open Test.app
on the command line, I get this error:
LSOpenURLsWithRole() failed with error -10810 for the file /Users/joe/workspace/appbundler/Test.app.
Googling LSOpenURLsWithRole
errors, it appears that the app bundle is incompatible with the OS version.
Or is this error expected when running the Test.app?
I ask because I'm working with @adamretter on a new build of eXist-db, and I'm encountering this phenomenon when I open his app on my High Sierra system. (He's using a mavenized build of appbundler, https://github.com/evolvedbinary/appbundler-maven-plugin. But I'm directly testing the infinitekind/appbundler repository's Test.app.)
Thanks for any guidance you might have.
When I run otool -l
on the binary in that app package (the Contents/MacOS/eXist-JavaAppLauncher file within the bundle) it shows a ‘minos’ value of 10.14. I’d say that something in their setup is causing the native launcher to have a default minimum version of 10.14. In the ant build.xml it specifies a minimum OS version of 10.7 with the -mmacosx-version-min=10.7 flag.
Is this issue then specific only to the mavenized repository, or do you get the same error using ours?
Thank you so much for introducing us to otool
, Sean. It helped me show @adamretter what he needed get to the bottom of the issue with the eXist build process.
Good to read that Joe’s issue is apparently resolved. However, it does remain that running ‘ant test’ and then trying to invoke the resulting Test.app fails. Or at least that is my experience using Java (10.)8 on macOS 10.13.