Page 1 of 1

[SOLVED] Mac os Sierra - Author v17 LSOpenURLsWithRole() failed with error -10810

Posted: Sat Oct 08, 2016 2:33 am
by Razique
Hey,
I'm trying to have the v17 of Author launching, but the app doesn't launch.
Clicking the icon doesn't produce anything - and when I use the "open" command, I see the following message:

Code: Select all

[raz:MacBook-Air] /Applications/oxygenAuthor # open -n Oxygen\ XML\ Author.app/
LSOpenURLsWithRole() failed with error -10810 for the file /Applications/oxygenAuthor/Oxygen XML Author.app.

[raz:MacBook-Air] /Applications/oxygenAuthor #
If I run the script, the app opens:

Code: Select all

[raz:MacBook-Air] /Applications/oxygenAuthor # ./oxygenAuthorMac.sh
I found another thread saying that the JRE might be missing, but I do see it:

Code: Select all

ls -al .
[raz:MacBook-Air] /Applications/oxygenAuthor # ls -al .
total 128
drwxr-xr-x@ 25 razique staff 850 Oct 7 16:21 .
drwxrwxr-x+ 105 root admin 3570 Oct 7 11:25 ..
-rw-r--r--@ 1 razique staff 6148 Oct 7 13:05 .DS_Store
drwxr-xr-x@ 34 razique staff 1156 Oct 7 12:11 .install4j

Some information:

Code: Select all

[raz:MacBook-Air] /Applications/oxygenAuthor # printenv | grep JAVA
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home

[raz:MacBook-Air] /Applications/oxygenAuthor # java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
Any idea on how to fix this issue?
Thanks!

Re: Mac os Sierra - Author v17 LSOpenURLsWithRole() failed with error -10810

Posted: Mon Oct 10, 2016 5:09 pm
by adrian
Hi,

Please note that v17.x and older do not officially support macOS 10.12, Sierra.
The classic archive distributions of oXygen (.zip and .tar.gz) fail to run on macOS 10.12 (Sierra) after being downloaded. This happens because the archives get quarantined (flagged with com.apple.quarantine). macOS 10.12 (Sierra) treats quarantined apps differently than older versions of OS X and isolates them from their parent folder, when they are launched.
If oXygen was already installed when upgrading to macOS 10.12 (Sierra), it will already work, since oXygen is no longer quarantined.

To resolve the issue, the quarantine flag must be removed for the entire contents of the oXygen folder or for the individual apps.
Open a Terminal window, change directory to the parent folder where oXygen is located
e.g. cd /Users/user/Downloads
and run the command:

Code: Select all

xattr -dr com.apple.quarantine oxygen/
where "oxygen" is the name of the oXygen folder.

If oXygen is placed in a location that requires admin privileges for write access (like /Applications), you need to run the command from an admin account and prefix the command with 'sudo':

Code: Select all

sudo xattr -dr com.apple.quarantine /Applications/oxygen/
You will be prompted to enter your password.

Regards,
Adrian

Re: Mac os Sierra - Author v17 LSOpenURLsWithRole() failed with error -10810

Posted: Mon Oct 10, 2016 6:03 pm
by Razique
Thanks.
I run the command but still no luck:

Code: Select all

sudo xattr -dr com.apple.quarantinexattr /Applications/oxygenAuthor/

Re: Mac os Sierra - Author v17 LSOpenURLsWithRole() failed with error -10810

Posted: Mon Oct 10, 2016 9:29 pm
by adrian
Hi,

Check your command. There's a spelling error there.

If the problem persists, download oXygen again, unpack it in Downloads and try the command there.
Ifit starts in Downloads, it will also work after you move it to /Applications. Remove the other one from /Applications first. Make sure you move the entire oxygen or oxygenAuthor folder, not files/folders from within it.

Regards,
Adrian

[SOLVED] Re: Mac os Sierra - Author v17 LSOpenURLsWithRole() failed with error -10810

Posted: Tue Oct 11, 2016 12:14 am
by Razique
Ha you're right.
It works now :)