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.

465 questions
6
votes
1 answer

dyld section not supported after Mojave upgrade

I have updated macos to Mojave and after updating the command tools and when I run my c++ program I am getting the following error dyld: __dyld section not supported in…
Ramesh K
  • 61
  • 1
  • 2
6
votes
3 answers

How do I add a third party Framework to iPhone project?

I am trying to use the PLDatabase framework in my iPhone app. I've added the framework to my Xcode project. However, when I run my app, it crashes with the following error: dyld: Library not loaded:…
talanb
  • 994
  • 1
  • 8
  • 13
6
votes
3 answers

Xcode, SFML error dyld: Library not loaded

I am trying to start a basic C++ project with link to SFML library. I have unzipped the SFML library to folder /Users/mulperi/cpplib/sfml and I have added that to Include Search Path and Library Search Path. My code is simple, I followed a…
Mulperi
  • 1,450
  • 1
  • 14
  • 24
6
votes
1 answer

DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=./foo/my.dylib ./bar/exec returns 1 w/o running my executable

On macOS 10.12.6, I have a shared library and an executable (both built myself, SIP should not apply AFAIK) and I'd like to preload the library for the executable. It fails, with a return code of 1, and silently otherwise: $ ./bar/exec
Laurynas Biveinis
  • 10,547
  • 4
  • 53
  • 66
6
votes
3 answers

Swift app crashes when run on device - dyld: Library not loaded: @rpath/libswiftCore.dylib

I am a newbie to the ios/xcode world and attempting to test out a simple Swift app on my iphone 5 running iOS v8.0.2. The app builds successfully in xcode (Version 6.1 (6A1052d)) but when it attempts to run it on the iphone, it crashes with the…
user4321945
  • 93
  • 2
  • 9
6
votes
3 answers

dyld: Library not loaded - When app run from the command line

I face some difficulties when adding a framework to my project when i run an iPhone app from the command line. My final goal is to run applications tests from an automated build process. When i run my app from xCode : I add a "Copy File" build phase…
user142764
  • 1,893
  • 1
  • 13
  • 15
6
votes
2 answers

In Mac OS, How to list all functions used by executable from dynamic library?

I tried to override network socket related function in Mail app. But I'm not sure if Mail app uses Core foundation socket or POSIX socket. I use otool -l to find dynamic loaded library in LC_LOAD_DYLIB section. However, I want to know what exact…
Ricky Zhang
  • 140
  • 1
  • 9
6
votes
1 answer

dyld can’t find DVTFoundation.framework

I’m trying to use appledoc for one of my projects. I downloaded the project, built it in Xcode, and copied the appledoc binary into ~/bin. Trying to run the binary gives this error: appledoc version: 2.1 (build 858) !> dyld: Library not loaded:…
bdesham
  • 15,430
  • 13
  • 79
  • 123
6
votes
1 answer

DYLD_INSERT_LIBRARIES doesn't work for app signed with entitlements on Mountain Lion

I notice that DYLD_INSERT_LIBRARIES no longer works in Mountion Lion if the application is codesigned with entitlements. For example: DYLD_INSERT_LIBRARIES=./mylib.dylib /Applications/Safari.app/Contents/MacOS/Safari dyld: DYLD_ environment…
maobeibei
  • 101
  • 4
6
votes
1 answer

Why doesn't OS X 10.8 Mountain Lion find X11 libraries when building software?

So, we all know that Mountain Lion doesn't ship with X11 anymore and users needing X11 are directed to download Xquartz. Xquartz installs to /opt, but it also symlinks X11 and X11R6 to /usr. But when building software that requires linking to X11…
Chip Warden
  • 61
  • 1
  • 4
6
votes
2 answers

dyld isuess (Library not loaded)

I have this message when I build my project: dyld: Library not loaded: @rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient Referenced from: /Users/dev01/mobile/ios/Test/test/testTests/FoneMonkey/bin/iphonesim …
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
5
votes
2 answers

Xcode 12.5 dyld issue with binary frameworks

I have a binary Swift xcframework which references two other open-source Swift frameworks (built from source). My framework along with its dependencies are built with the BUILD_LIBRARY_FOR_DISTRIBUTION option enabled (in order to support module…
Jonathan Ellis
  • 5,221
  • 2
  • 36
  • 53
5
votes
2 answers

Problems with using setenv and then making the dlopen call

I am using setenv to set DYLD_LIBRARY_PATH so when I do a dlopen() it will have the correct paths to find my .dylib, but when I do the dlopen() it doesn't seem to search the paths that I added to DYLD_LIBRARY_PATH. From what I can gather my…
Michael Wildermuth
  • 5,762
  • 3
  • 29
  • 48
5
votes
0 answers

Library not loaded after Runtime Hardened enabled

I am trying to notarize my macOS app. My app is embedded with some licensed libraries. I studied document about how to notarize an app and followed steps, my app can be uploaded to Apple notarize services and exported to use, but when I run my app…
Vannes Yang
  • 141
  • 6
5
votes
1 answer

Xcode sometimes removes linked library

When using different Frameworks in Xcode, the compiler and linker sometimes do not include that Framework in the library. The result is an immediate crash during the startup with the following message: dyld: Library not loaded:…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57