Questions tagged [dyld]

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.

dyld
Filter by
Sorted by
Tagged with
670 votes
34 answers
355k views

iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta

This crash has been a blocking issue I used the following steps to reproduce the issue: Create a Cocoa Touch Framework project Add a swift file and a class Dog Build a framework for device Create a ...
vladof81's user avatar
  • 26.4k
468 votes
59 answers
267k views

dyld: Library not loaded: @rpath/libswiftCore.dylib

I am trying to run a Swift app on my iPhone 4s. It works fine on the simulator, and my friend can successfully run it on his iPhone 4s. I have iOS 8 and the official release of Xcode 6. I have tried ...
user3751185's user avatar
  • 4,735
408 votes
42 answers
496k views

dyld: Library not loaded ... Reason: Image not found

When trying to run an executable I've been sent in Mac OS X, I get the following error dyld: Library not loaded: libboost_atomic.dylib Referenced from: /Users/"Directory my executable is in" ...
rwolst's user avatar
  • 13.2k
309 votes
27 answers
284k views

OS X Framework Library not loaded: 'Image not found'

I am trying to create a basic OS X Framework, right now I just have a test framework created: TestMacFramework.framework and I'm trying to import it into a brand new OS X Application project. I have ...
Sammio2's user avatar
  • 7,422
251 votes
26 answers
122k views

Broken references in Virtualenvs

I recently installed a bunch of dotfiles on my Mac along with some other applications (I changed to iTerm instead of Terminal, and Sublime as my default text editor) but ever since, all my virtual ...
oxtay's user avatar
  • 3,990
216 votes
36 answers
76k views

dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib

I get this error after adding a Swift class to an old Xcode project. dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib How can I make the project run again?
Anton's user avatar
  • 5,982
210 votes
15 answers
104k views

registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later

When trying to register for push notifications under iOS 8.x: application.registerForRemoteNotificationTypes(UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType....
Wojtek Turowicz's user avatar
136 votes
31 answers
148k views

Reason: no suitable image found [closed]

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/Stylist.app/Stylist Reason: no suitable image ...
Satsuki's user avatar
  • 2,186
130 votes
12 answers
84k views

How to resolve "dyld: Library not loaded: @executable_path.." error

I was trying to check the AWS-CLI version on my MAC OS X. And the below error hit back: dyld: Library not loaded: @executable_path/../.Python Referenced from: /usr/local/aws/bin/python Reason: ...
Manogna Mujje's user avatar
128 votes
11 answers
123k views

dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib with anything php related

Using any php application results in: dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib Referenced from: /usr/local/bin/php Reason: image not found [1] 4494 trace trap php Most of my php ...
user3458861's user avatar
  • 1,301
109 votes
12 answers
56k views

dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib

I have just updated to Xcode 7 and swift 2 and finished fixing the errors that come with the transition. I finally got the project to build, but after the launch screen I get an error saying: dyld: ...
coracora's user avatar
  • 1,337
77 votes
9 answers
18k views

Xcode 10.2 Failed to Run App on Simulator with iOS < 10

I was playing around with Xcode 10.2 since the update and when I try to run my app on ANY simulator with iOS version less than 10, the simulator will not start and crash then show the error below: ...
JyTee's user avatar
  • 929
71 votes
13 answers
54k views

ImageMagick and OS X Lion trouble

[edit] I was troubleshooting problems with my development environment when I noticed one of my problems was the dependency on ImageMagick, since it's a vital part of my app. After upgrading to OS X ...
rroche's user avatar
  • 1,262
55 votes
1 answer
66k views

install_name_tool to update a executable to search for dylib in Mac OS X

I have a dynamic libray libtest.dylib that is installed in /PATH/lib, and an execution binary, myapp, that uses the dylib installed in /PATH/bin. I can run myapp to find the dylib as follows (Is it ...
prosseek's user avatar
  • 186k
49 votes
9 answers
16k views

Error loading library in mac terminal

Anyone please help.. How can I fix the following error: dyld: Library not loaded: /usr/local/lib/libgdbm.4.dylib Referenced from: /usr/local/bin/zsh Reason: image not found
knz's user avatar
  • 499
48 votes
11 answers
24k views

Homebrew will not run wget command (Library not loaded)

I received the following message when I try to use wget command after installation on Homebrew (running Mac High Sierra 10.13). dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib ...
Deadface07's user avatar
48 votes
7 answers
26k views

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

since an update to 10.8 I get the following error, when trying to do a sudo command, which is pretty annoying. dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) ...
eneskaya's user avatar
  • 918
47 votes
1 answer
44k views

How to set the runtime path (-rpath) of an executable with gcc under Mac OSX?

I want to set under Mac OSX the runtime path of an executable (for the linker) at compile time, such that shared libraries at non-standard locations are found by the dynamic linker at program start. ...
maxschlepzig's user avatar
  • 37.2k
45 votes
14 answers
43k views

Brew doctor: dyld: Library not loaded & Error: No available formula for zlib

When I brew doctor I get the following errors: dyld: Library not loaded: /usr/lib/libltdl.7.dylib Referenced from: /usr/local/bin/php Reason: image not found Error: No available formula for zlib ...
Ryan's user avatar
  • 6,141
44 votes
2 answers
11k views

Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error

I have been trying to install RVM and Ruby 2.1.1 onto my new Mac (OS 10.9.2), and everything seems to be going well until I try to install any version of Ruby. My input $ rvm reinstall 2.1 So far ...
Dylan's user avatar
  • 1,036
43 votes
16 answers
34k views

Xcode 5.0.2 dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest

I have problems running a project in Xcode 5.0.2 I get the following error: dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest Referenced from: /Users/chris/Library/Developer/...
user637338's user avatar
  • 2,635
42 votes
9 answers
20k views

How to run an iOS app that causes runtime error for frameworks "code signature invalid"

Every time I try to run this application it builds OK and installs, but as soon as it runs, the application breaks and prints this error message: dyld: Library not loaded: @rpath/StandardCyborgFusion....
Aidan Rosswood's user avatar
39 votes
3 answers
13k views

dyld: Library not loaded different behavior for 6.0 simulator/6.0 device

My app runs fine on the iPhone 6.0 Simulator in Xcode, but when I try to run it on my 6.0 device, I get the following fatal error: dyld: Library not loaded: /System/Library/Frameworks/AdSupport....
Jeff Grimes's user avatar
  • 2,310
36 votes
6 answers
23k views

Ruby -v dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib

I've been trying to run a script in the terminal and every time I do I get: $ ruby directory.rb dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib Referenced from: /Users/claretrembath/.rvm/...
czzt's user avatar
  • 361
29 votes
7 answers
18k views

Xcode10 - dyld: Library not loaded for pod installed in framework

I have a project with target frameworks. MainAppTarget FrameworkA FrameworkA is the only one to use a certain pod, hence in my pod file I have something like target 'MainAppTarget' do ... end ...
Giuseppe Lanza's user avatar
27 votes
2 answers
6k views

Unable to run Swift Package Manager (macOS 10.14.4)

When I try 'swift package' in a terminal window, the following is displayed: dyld: Library not loaded: @rpath/llbuild.framework/Versions/A/llbuild Referenced from: /Library/Developer/CommandLineTools/...
ToddX61's user avatar
  • 693
26 votes
9 answers
36k views

php dyld: Library not loaded for libldap

I installed ruby on my Mac OSX High Sierra and am running into issues now with my php installation for some reason. I'm on php 7.1. Following this (also here) Github suggestion, I tried brew update &...
user3871's user avatar
  • 12.6k
23 votes
2 answers
23k views

What path does @loader_path resolve to?

I'm having a hard time understanding the absolute path that a @loader_path within a file refers to. user@local:~$ otool -L zlib.so zlib.so: @loader_path/../../libz.1.dylib (compatibility version ...
ChrisB's user avatar
  • 4,688
22 votes
5 answers
12k views

dyld: Symbol not found: __cg_jpeg_resync_to_restart

I'm trying to run a java version of PowerLoom, but when I try to start it in the terminal, I get the following error message: dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /...
LeahNH's user avatar
  • 535
22 votes
9 answers
5k views

Xcode 7.0 XCTest dyld: could not load inserted library IDEBundleInjection

I'm running unit tests on my iOS project and when it's running, it crashes and spits this out: dyld: could not load inserted library '/private/var/mobile/Containers/Data/Application/1CAB64C8-D730-...
FireDragonMule's user avatar
20 votes
7 answers
18k views

"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 ...
Fanruten's user avatar
  • 3,782
17 votes
3 answers
9k views

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 ...
Adam Rosenfield's user avatar
15 votes
4 answers
3k views

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 ...
MarkHim's user avatar
  • 5,716
15 votes
2 answers
35k views

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 ...
BigMacAttack's user avatar
  • 4,509
15 votes
1 answer
1k views

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 ...
leedm777's user avatar
  • 23.8k
15 votes
1 answer
1k views

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 ...
aofs's user avatar
  • 247
14 votes
2 answers
4k views

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 ...
staticfloat's user avatar
  • 6,860
13 votes
4 answers
6k views

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 ...
user avatar
13 votes
5 answers
18k views

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 ...
drewster's user avatar
  • 5,709
13 votes
1 answer
5k views

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/...
Trausti Sæmundsson's user avatar
13 votes
7 answers
18k views

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/...
Abhijeet's user avatar
  • 151
12 votes
3 answers
17k views

What does "expected in: flat namespace" mean?

The OS X dynamic loader often gives errors like Symbol not found: <some symbol name> Referenced from: <lib location> Expected in: flat namespace If you search for the error you'll find a ...
asmeurer's user avatar
  • 89k
12 votes
0 answers
4k views

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; ...
Zac B's user avatar
  • 3,969
11 votes
2 answers
2k views

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 ...
danielpunkass's user avatar
11 votes
1 answer
21k views

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) ...
Tom's user avatar
  • 2,116
11 votes
1 answer
2k views

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's user avatar
  • 1,885
10 votes
1 answer
4k views

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's user avatar
  • 3,573
10 votes
2 answers
6k views

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 ...
user avatar
10 votes
2 answers
7k views

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 \ -...
Alan's user avatar
  • 260
10 votes
2 answers
11k views

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 ...
Stephen Furlani's user avatar

1
2 3 4 5
10