dyld, the Dynamic Link Editor, is the binary loader for Darwin (Mac OS X). Questions about dyld typically involve shared libraries being unavailable at link-time, or unavailable at runtime.
Questions tagged [dyld]
465 questions
8
votes
2 answers
DYLD_PRINT_STATISTICS not showing anything
I'm trying to profile app startup after moving from static libraries to frameworks. We have 30 or so frameworks (fyi: cocoapods) so I want to check that it's not affecting performance. Anecdotal testing in the team says that it isn't, but I would…

deanWombourne
- 38,189
- 13
- 98
- 110
8
votes
1 answer
How libgmalloc work with two level namespaces?
I want to write my own malloc/free functions with debug purposes, documentation says I have to use DYLD_FORCE_FLAT_NAMESPACE together with DYLD_INSERT_LIBRARIES. But at the same time libgmalloc article clearly states:
libgmalloc is available in…

dev_null
- 1,907
- 1
- 16
- 25
8
votes
1 answer
Finding Offsets of Local Symbols in Shared Libraries Programmatically on OS X
I need to find the offset of a local symbol in a shared library on OS X. Local symbol as in non-exported symbol. Therefore dyld("symbol_name") will not work.
I can however use nm to find these offsets, for example
$ nm…

Johannes Weiss
- 52,533
- 16
- 102
- 136
8
votes
1 answer
node-gyp on OSX 10.7.5 -- dyld: lazy symbol binding failed: Symbol not found
I've searched quite a bit, and the closest thing I found to this same question was this (also unanswered) question:
Symbol not found: _libintl_gettext
I'm attempting to make a thin c++ wrapper for libpuzzle.
$ node --version
v0.8.18
$ npm…

slf
- 22,595
- 11
- 77
- 101
7
votes
1 answer
macOS: Load one or other system framework at run time based on availability
I'm working on a macOS tool which uses Apple's Safari framework. When running in macOS 10.13, the tool links to and loads it from
/System/Library/PrivateFrameworks/Safari.framework
and all works fine. But when running in macOS 10.12.6, some…

Jerry Krinock
- 4,860
- 33
- 39
7
votes
4 answers
mac OS file system sandbox blocked open()
I've run into
dyld: could not load inserted library '/usr/local/lib/dgagent/libpreload.dylib' because no suitable image found. Did find:
file system sandbox blocked open() of '/usr/local/lib/dgagent/libpreload.dylib'
error with several…

user2156173
- 143
- 1
- 5
7
votes
1 answer
Alternative for the DYLD_LIBRARY_PATH-trick since Mac OS 10.11 El Capitan with System Integrity Protection
Here is what I have:
Mac OS 10.11 El Capitan
python 2.7.12, installed from python.org under /Library/Frameworks/Python.framework/
PyCharm 2016.2.3
vtk 7.1.0
Here is what I do:
Build a python module locally. In my case, this is vtk. For a summary,…

normanius
- 8,629
- 7
- 53
- 83
7
votes
1 answer
Why do crashes in iOS relating to dyld_stub_binder occur?
It's widely known that dynamic link libraries aren't allowed in iOS apps, they may only link to dynamic system libraries. But I do run into some pretty confusing crashes with the 3rd frame from the top of the stack being dyld_stub_binder.
It's…

Joey Carson
- 2,973
- 7
- 36
- 60
7
votes
1 answer
Does OS X have two linkers ? One static and one dynamic?
The problem is, I've found out that Mac OS X has an dyld (as I understood a dynamic linker) but also a simple linker ld (as I understood a static one).
The question is: Is it really so ? Two linkers? One static and one dynamic ?
Why they've decided…

denis631
- 1,765
- 3
- 17
- 38
7
votes
0 answers
Propagation of rpath in library fails
Short question: Are the rpaths from a LC_RPATH command inside a library passed onto subsequent (and indirect) dynamically loaded libraries?
To be more precise: I have libapi.dylib dynamically linked to libloader.dylib which in turn dynamically loads…

phlipsy
- 2,899
- 1
- 21
- 37
7
votes
1 answer
PIE disabled. Absolute addressing not allowed in code signed PIE
I'm working with Xcode 4.5 with a deployment target of iOS 5.1
I'm getting the following warning when I compile my app in relation to two specific methods which have significantly increased in size.
ld: warning: PIE disabled. Absolute addressing…

user1927751
- 79
- 3
6
votes
2 answers
Building DYLD from apple's source
I am trying to build the open source DYLD, published by Apple here:
http://www.opensource.apple.com/source/dyld/dyld-97.1/
I copied down every single file and tried building the XCode project, but am stuck on a missing file.…

Locksleyu
- 5,192
- 8
- 52
- 77
6
votes
2 answers
Xamarin.iOS app crashing with error DYLD Library not loaded, mapped file has no cdhash, Code has to be at least ad-hoc signed
I am using Windows VS 2019 paired to my Mac. My Xamarin.iOS app has started crashing with this error in the Xcode device logs: DYLD Library not loaded mapped file has no cdhash, Code has to be at least ad-hoc signed.
Visual Studio reports that the…

jwrule
- 151
- 6
6
votes
2 answers
Creating a controller with rails generate is causing a strange error
I tried to start a simple rails app today to refresh my knowledge and ran into a very strange issue...
Created app (rails new app-name).
Created controller with index action (rails g controller site index).
Set the root route to site#index.
Start…

K.DBTC
- 85
- 7
6
votes
3 answers
dyld: Library not loaded: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Python
When trying to run simple python3 code via pycharm, I get following error
/Users/slimerski/PycharmProjects/studia/venv/bin/python /Users/slimerski/PycharmProjects/studia/zadania_14.py
dyld: Library not loaded:…

Slimerski
- 61
- 1
- 1
- 3