Skip to content

Library doesn't work/load on M1 Mac: no LC_RPATH's found #53

Open
@kwadkore

Description

@kwadkore

Description

I followed the installation instructions to add the library to my project (using bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-go/main/install.sh), and it failed with the error message below. I then tried to use the test in the README (go test github.com/objectbox/objectbox-go/...) and it failed for the same reason.

Basic info

Please complete the following information:

  • ObjectBox version (are you using the latest version?): Latest = 1.8.1
  • Reproducibility: Always
  • Device: M1 Pro Mac
  • OS: Sonoma 14.6.1

How to reproduce

Steps to reproduce the behavior:

  1. Follow installation instructions:
  2. bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-go/main/install.sh)
  3. Download test code: git clone https://github.com/objectbox/objectbox-go.git
  4. CD into directory
  5. Run test: go test ./...
  6. See error

Expected behavior

Test passes

Code

Use test code

Logs, stack traces

dyld[60013]: Library not loaded: @rpath/libobjectbox.dylib
Referenced from: <00598A4B-D353-7E86-FAF8-D76E2483B2BB> /private/var/folders/2k/5zy5qzq126sgs39w4cp1sb7m0000gn/T/go-build2815972867/b179/performance.test
Reason: no LC_RPATH's found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions