Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dyld: Lazy Symbol Binding Failed: Symbol not found: _objc_alloc_init #371

Closed
xaviervalarino opened this issue Jan 19, 2020 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@xaviervalarino
Copy link

Getting this error when trying to run Yabai v2.2.0 on macOS 10.3.6

dyld: lazy symbol binding failed: Symbol not found: _objc_alloc_init
  Referenced from: /usr/local/bin/yabai (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libobjc.A.dylib

dyld: Symbol not found: _objc_alloc_init
  Referenced from: /usr/local/bin/yabai (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libobjc.A.dylib

Abort trap: 6
@koekeishiya
Copy link
Owner

So apparently they made some changes in Catalina that I need to adapt to when building for older versions. This should be resolved in v2.2.1 published just now. Can you try and confirm whether that fixes it or not?

@koekeishiya koekeishiya added the bug Something isn't working label Jan 19, 2020
@xaviervalarino
Copy link
Author

Thanks for the quick fix! I’ll test it out when I am back on that machine.

@xaviervalarino
Copy link
Author

This resolved my issue! Thanks again for the lightspeed fix.

@bolu-atx
Copy link

bolu-atx commented May 7, 2020

@koekeishiya would you mind sharing what you did? I am running into similar issues when I build on Catalina and it's run on older version of MacOS (mojave)

@koekeishiya
Copy link
Owner

You need to specify the minimum supported macOS version when compiling. I use clang and just passed the following build flag: -mmacosx-version-min=10.13

@bolu-atx
Copy link

bolu-atx commented May 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants