There are Java Android and ObjC iOS bindings available in the repository.
Not sure how those would work in a regular JRE or ObjC macOS environment, but it should be alright (but then, you might as well use the C++ API directly on macOS, just saying).