Bob on Mac error

Running Bob 1.4.4 (and other versions I’ve tried) on Mac gives errors, as below (the project is defold-input)
I’m familiar with running Bob on Windows, and I normally download bob.jar into the editor installation folder which isn’t an option on Mac, but I don’t think that’s the cause?

java -jar /Users/dri/Desktop/bob_144.jar resolve
Download archive(s)Downloading 2 archive(s)
0: Downloading https://github.com/britzl/deftest/archive/2.6.0.zip
0: Status 304: Already cached
2147483647% 1: Downloading https://github.com/britzl/defold-orthographic/archive/2.10.0.zip
1: Status 304: Already cached
Working...Reading classes...Can't load library: /var/folders/ny/05wk595149v2zs2zz5jtwct40000gn/T/334623923490774861/x86_64-macos/libmodelc_shared.dylib
Cause: java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/ny/05wk595149v2zs2zz5jtwct40000gn/T/334623923490774861/x86_64-macos/libmodelc_shared.dylib

This is the installed Java version:

java --version
openjdk 11.0.18 2023-01-17 LTS
OpenJDK Runtime Environment Microsoft-7208460 (build 11.0.18+10-LTS)
OpenJDK 64-Bit Server VM Microsoft-7208460 (build 11.0.18+10-LTS, mixed mode)

What mac are you using, intel or arm?
We don’t yet support arm, so you need to run it from an intel terminal.

If you run arch it should report i386 or x86_64, not arm64.
You should be able to switch to x86_64 by running:

$ arch -x86_64
3 Likes

Thanks, that was it. It’s an M1 Mac.
I wasn’t aware I could switch architectures in the terminal.

2 Likes

It’s a useful trick, right??

You can also right click the Terminal app in Finder, click Get Info, and then check “Open using Rosetta”, which will do the same thing every time you open Terminal.

Frankly I have this on all the time, there are a lot of developer tools that still don’t work on native Apple Silicon. :confused: