eclipse-archived / triquetrum

Triquetrum project
Other
13 stars 14 forks source link

Triquetrum macOS app fails to open: message about being damaged #337

Closed cxbrooks closed 4 years ago

cxbrooks commented 4 years ago

Under macOS Mojave 10.14.4, when Triquetrum 0.3.0 is installed from http://www.eclipse.org/downloads/download.php?file=/triquetrum/0.3.0/org.eclipse.triquetrum.workflow.editor.rcp.incubation-0.3.0-macosx.cocoa.x86_64.zip

a dialog pops up that says:

“triquetrum-0.3.0” is damaged and can’t be opened. You should move it to the Trash.

The reason this occurs is because the quarantine attribute is set.

bash-3.2$ ls -l@ ~/Downloads/org.eclipse.triquetrum.workflow.editor.rcp.incubation-0.3.0*
-rw-r--r--@ 1 cxh  staff  180528035 Oct  8 21:07 /Users/cxh/Downloads/org.eclipse.triquetrum.workflow.editor.rcp.incubation-0.3.0-macosx.cocoa.x86_64.zip
        com.apple.metadata:kMDItemWhereFroms          229
        com.apple.quarantine           58

To remove the quarantine attribute, use xattr on the application:

xattr -d ~/Downloads/ triquetrum-0.3.0.app

Then try to restart Triquetrum.

If that does not work, then try using xattr on the zip file and then unzipping again:

cd ~/Downloads
rm -rf triquetrum-0.3.0
xattr -d com.apple.quarantine org.eclipse.triquetrum.workflow.editor.rcp.incubation-0.3.0-macosx.cocoa.x86_64.zip
unzip org.eclipse.triquetrum.workflow.editor.rcp.incubation-0.3.0-macosx.cocoa.x86_64.zip

For details, see

Bug 398450 - 4.2.2: Mac Gatekeeper claims Eclipse is damaged and should be moved to the trash

cxbrooks commented 4 years ago

Hmm. It seems that the milestone build was not including -Peclipse-sign in the goals for the maven build step, see https://ci.eclipse.org/triquetrum/job/triquetrum.milestone/configure

Now the problem is that I get:

The JVM shared library "/Library/Java/JavaVirtualMachines/jdk-13.jdk/Contents/Home/bin/../lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.

cxbrooks commented 4 years ago

The fix to

The JVM shared library "/Library/Java/JavaVirtualMachines/jdk-13.jdk/Contents/Home/bin/../lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.

Is to edit ~/Downloads/triquetrum-0.3.0.app/Contents/Info.plist and add a -vm command line argument for the installed JVM.

See https://stackoverflow.com/questions/24589932/mac-os-jdk1-7-and-1-8-does-not-contain-the-jni-createjavavm-symbol/25486012