C++ Mac .app fails to open with error "LSOpenURLsWithRole() failed with error -10810"

Hi,

I’ve been testing my game across a number of devices and have run into an issue on older versions of MacOS.

The latest MacOS, Windows and Linux compile and run fine. However on an older device running OS X Mavericks 10.9.5 and the .app file (compiled on a different Mac) fails to open with the following error:

open /Users/crew/Downloads/1.0.0-512\ 2/idioctopus.app 
LSOpenURLsWithRole() failed with error -10810 for the file /Users/crew/Downloads/1.0.0-512 2/idioctopus.app.

I’m using the following libraries (copied from haxelib list):

haxe-ga: [0.5.3]
hxcpp: 3.2.193 [3.3.49]
lime: 2.7.0 [2.9.0] 3.3.0
msignal: [1.2.4]
openfl: 3.1.4 [3.6.0]

If someone could give me a few ideas where to start debugging this issue I’d be really grateful.

Thanks,
Nick H

I think this may be an issue with the way I was moving the app between computers using a .Zip and nothing to do with openfl. Will confirm today.

Yeah, the executable had lost its permissions.

1 Like