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
20
votes
7 answers
"dyld: could not load inserted library '/usr/lib/libgmalloc.dylib' because image not found"
When I run the app in Xcode IOS 6 beta 2 firmware on the device 8 Beta 2, I get the error message:
"dyld: could not load inserted library '/ USR / Library / libgmalloc.dylib", because the image was not found. "
What could be the problem?

Fanruten
- 3,782
- 4
- 19
- 15
17
votes
3 answers
How to distribute a Mac OS X with dependent libraries?
I have a program (specifically my entry for the SO DevDays Countdown app challenge) which relies on several dynamic libraries, namely libSDL, libSDL_ttf, and others. I have these libraries installed under /opt/local/lib via MacPorts, and many…

Adam Rosenfield
- 390,455
- 97
- 512
- 589
15
votes
2 answers
How to properly set run paths, search paths, and install names?
I have a collection of projects that I'm compiling as dynamic libraries. Each of these .dylibs depend on other various .dylibs that I would like to place in various other directories (i.e. some at the executable path, some at the loader path, some…

BigMacAttack
- 4,479
- 3
- 30
- 39
15
votes
4 answers
Too many commands? Dyld Message: malformed mach-o: load commands size
Some iOS 9 devices in the wild seem to crash with the error message that I receive from the very basic crash reporting in Xcode only
dyld: malformed mach-o: load commands size (16464) > 16384
Unfortunately that's all the info I get. I can't even…

MarkHim
- 5,686
- 5
- 32
- 64
15
votes
1 answer
Pod handling in cocoa touch framework - Got error on Device
I've googled about 2-3 hours and tried out several things but I'm not able to get this working:
What I like to achieve
The goal is to split UI code and business logic. The business logic should be capusled in a seperate framework. A Cocooa Touch…

aofs
- 247
- 1
- 10
15
votes
1 answer
What are the details of dynamic symbol binding on OS X?
I have a really odd situation with dynamic symbol binding on OS X that I'm hoping to get some clues on how to resolve.
I have an application, written in C, which uses dlopen() to dynamically load modules at runtime. Some of these modules export…

leedm777
- 23,444
- 10
- 58
- 87
14
votes
2 answers
Find pathname from dlopen handle on OSX
I have dlopen()'ed a library, and I want to invert back from the handle it passes to me to the full pathname of shared library. On Linux and friends, I know that I can use dlinfo() to get the linkmap and iterate through those structures, but I…

staticfloat
- 6,752
- 4
- 37
- 51
13
votes
5 answers
dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Reason: image not found
I'm getting this error upon launch of my app. I am building under Xcode 9.0 (9A235) on MacOS High Sierra 10.13. I also tried building under Xcode 8.3.3 with the same result. The project is generally Objective C, but the framework…

drewster
- 5,460
- 5
- 40
- 50
13
votes
4 answers
dyld: Library not loaded: libperl.dylib Referenced from: perl5.18
Im getting dyld library not found error in my xcode.
dyld: Library not loaded:
/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/libperl.dylib
Referenced from: /usr/bin/perl5.18
So I tried to reinstall perl as following.But i got the…
user6517192
13
votes
1 answer
dyld: Library not loaded, app requires AFNetworking 2.0.0 but provides version 1.0.0
I am running into this error and cannot solve it. I have tried cleaning and running again, deleting all pods and installing again. Any hints?
dyld: Library not loaded: @rpath/AFNetworking.framework/AFNetworking
Referenced from:…

Trausti Sæmundsson
- 137
- 1
- 6
13
votes
7 answers
dyld error: image not found
I got this error message while running my application on simulator.
Dyld Error Message:
Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit
Referenced from: /Users/thomasschober/Excuse Me/build/Distribution-iphonesimulator/Excuse…

Abhijeet
- 151
- 1
- 1
- 6
12
votes
3 answers
What does "expected in: flat namespace" mean?
The OS X dynamic loader often gives errors like
Symbol not found:
Referenced from:
Expected in: flat namespace
If you search for the error you'll find a ton of errors that have it. I understand roughly that the…

asmeurer
- 86,894
- 26
- 169
- 240
11
votes
2 answers
How can I install a DYLD loader command that is not explicitly supported by ld?
On Mac OS X, binary executables in the DYLD format contain "loader commands" that instruct the library loading system how to handle the contents of the file. In particular, the loader command instruct the system where dependent libraries should be…

danielpunkass
- 17,527
- 4
- 24
- 38
11
votes
1 answer
Avoid automatic framework linking in swift
I have an example project consisting of a main target (LinkerTests) and a dependent dynamic framework (Dynamic).
If you run the project, you will see the following dyld binary load:
dyld: loaded:…

Tim
- 1,877
- 19
- 27
10
votes
1 answer
What environment variables control dyld?
There are a bunch of environment variables that control dyld launch, several of them very useful for debugging performance problems. Not all of them are documented.

dmaclach
- 3,403
- 1
- 21
- 23