objectbox / objectbox-go

Embedded Go Database, the fast alternative to SQLite, gorm, etc.
https://objectbox.io
Apache License 2.0
1.1k stars 45 forks source link

dyld Symbol not found: _obx_async on latest xcode, macos, and golang #50

Closed RoughIndustries closed 1 year ago

RoughIndustries commented 1 year ago

I updated to latest Mac version and XCode. After install when I build and run the example it am getting: dyld[17149]: Symbol not found: _obx_async Referenced from: <7BEAD442-460A-303C-B58C-445863176369> Expected in: unknown

Basic info Mac Ventura 13.6 / XCode 15.0 / Golang 1.21 / ObjectBox 1.7

How to reproduce

I am just following the install and example in Github. I am also running the test.sh.

RoughIndustries commented 1 year ago

not sure why but I had to add DYLD_LIBRARY_PATH=/usr/local/lib to my env vars. I am using GoLand so I did it in my run configs env section. In case anyone else come across this issue. This might also need to be looked at in the install script.