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
10
votes
2 answers
DTDeviceKit: Could not start house arrest service for app identifier XXX
I'm using Xcode 7.3.1 and executing XCTest via the command-line on my device, "iPhone 1", which is an iPhone 6 running iOS 9.3.5:
xcodebuild \
-scheme Todo \
-project Todo.xcodeproj \
-destination "platform=iOS,name=iPhone 1"\
clean build…

Alan
- 260
- 2
- 11
10
votes
2 answers
How to insert a LC_LOAD_DYLIB command into a Mach-O binary (OSX)
I'm looking to patch a piece of abandonware with some code.
The software is carbon based, so I can not use an InputManager (at least, I do not think I can). My idea was to add a dylib reference to the mach-o header, and launch a new thread when the…
Moe
10
votes
2 answers
Symbol Not Found, expected in Flat Namespace ObjC++
I've got probably what is a simple problem, but there's no informative errors or warnings during compile to alert me to what is going wrong.
I've got a Objective-C++ app that includes a C++ main and ObjC header files.
It builds fine, but when run,…

Stephen Furlani
- 6,794
- 4
- 31
- 60
10
votes
1 answer
Can a Mac OS X application prevent dlopen from loading a library?
After some careful debugging, I have discovered a bug in my application that is rooted in the system frameworks loading a buggy Apple bundle:
/System/Library/CoreServices/MLTEFile.bundle
I am confident that I am not benefiting from the services of…

danielpunkass
- 17,527
- 4
- 24
- 38
9
votes
0 answers
How can I find out which symbol is causing "dyld: missing symbol called"?
On MacOS, I have a set of python binaries I don't control (i.e. I can't build them with LDFLAGS='-undefined error').
On certain MacOS hosts/architectures (that is, some ARM Macs, but not all of them; some x86 Macs, but not all of them), doing…

Zac B
- 3,796
- 3
- 35
- 52
9
votes
1 answer
How to set dylib search path OSX
I have a project in Xcode where I set DYLD_FALLBACK_LIBRARY_PATH in the environment variables pane to set where my application should look for libraries to link to (which works well for my purposes)
I am writing a CMakeLists.txt file to generate…

Tom
- 1,956
- 2
- 18
- 23
9
votes
3 answers
Qt application throws "dyld: Symbol not found: __cg_jpeg_resync_to_restart"
I get well known dyld issue on OS X.
Qt.pro file:
INCLUDEPATH += /usr/local/Cellar/libpng/1.6.23/include /usr/local/Cellar/jpeg/8d/include
LIBS += -L/usr/local/Cellar/libpng/1.6.23/lib -L/usr/local/Cellar/jpeg/8d/lib -ljpeg -lpng -ljpeg -lz
In…

konstantin_doncov
- 2,725
- 4
- 40
- 100
9
votes
3 answers
qt mac osx 10.8 dyld: library not loaded...image not found
I have an app I was building and running fine under osx snow leopard with Qt 4.7.4, but that macbook died. I now am setting up a new macbook running mountain lion (10.8.2) and Qt 4.8.3. I can build my app, but when I try to run it from within Qt…

David Burson
- 2,947
- 7
- 32
- 55
8
votes
2 answers
Mach-O file LC_FUNCTION_STARTS load command
Does anyone know what the format of the data pointed to by the Mach-O LC_FUNCTION_STARTS command is?
The most information I could find is in the loader.h header file:
#define LC_FUNCTION_STARTS 0x26 /* compressed table of function start addresses…

Locksleyu
- 5,192
- 8
- 52
- 77
8
votes
2 answers
dyld cache '/System/Library/dyld/dyld_shared_cache_x86_64h' not loaded: syscall to map cache into shared region failed
I'm getting this error when trying to use python 3. How can I solve this issue?
dyld[2675]: dyld cache
'/System/Library/dyld/dyld_shared_cache_x86_64h' not loaded: syscall
to map cache into shared region failed dyld[2675]: Library not…

chackerian
- 1,301
- 2
- 15
- 29
8
votes
4 answers
dyld: Symbol not found: _ffi_prep_closure_loc (on Mac)
I did a regular flutter run on my Mac, targeting my iPhone simulator today and got these errors.
Error output from CocoaPods:
↳
dyld: lazy symbol binding failed: Symbol not found: _ffi_prep_closure_loc
Referenced from:…

Touré Holder
- 2,768
- 2
- 22
- 20
8
votes
2 answers
Self-modifying code on Darwin 10.15 resulting in "malformed mach-o image"?
I have a program that generates self-modifying code (see https://tigress.wtf/selfModify.html in case you're interested). It runs on x86 Darwin and Linux. On Darwin, I compile with
gcc -g -segprot __TEXT rwx rwx self_modifying.c -o…

user3383151
- 81
- 2
8
votes
1 answer
dyld: Library not loaded: @rpath/GoogleInteractiveMediaAds.framework/GoogleInteractiveMediaAds Error in Custom Framework integration
I am creating a custom swift Framework inside this framework I am integrating GoogleAds-IMA-iOS-SDK via adding linked framework and libraries. I am adding a custom framework to my project it creates Library not loaded error.
dyld: Library not…

Siva
- 700
- 6
- 25
8
votes
2 answers
ImageMagick: dyld: Library not loaded. Reason: image not found
I downloaded ImageMagick from https://www.imagemagick.org/script/download.php#macosx
extracted it to ~/Documents/software
my .profile looks like this:
export MAGICK_HOME="~/Documents/software/ImageMagick-7.0.7"
export…

dev4life
- 10,785
- 6
- 60
- 73
8
votes
1 answer
How to find which shared library is loaded by a process on OSX?
I am trying to compile and use a shared C library as a python module and I am observing that depending on the DYLD_LIBRARY_PATH my code works or it crashes with a cryptic error message.
Jul 24 02:44:44 master
$ DYLD_LIBRARY_PATH=/opt/local/lib …

Pushpendre
- 795
- 7
- 19