Questions tagged [dylib]

Xcode Dynamic Library file extension

803 questions
21
votes
1 answer

How do I create a working framework with dylib files in Xcode 4

I have created a new cocoa framework in Xcode, removed all the libraries and files it includes at the beginning except the supporting files. I have 2 files: add.h #ifndef add_add_h #define add_add_h void add(void); #endif and add.c #include…
user966020
  • 331
  • 1
  • 2
  • 5
21
votes
3 answers

Making Xcode embed necessary dylibs

I'm trying to do something pretty simple and typical, which is use dynamically linked libraries in my Xcode project and then deploy with all the necessary libraries embedded. However I must be doing something the wrong way, because Xcode 8 won't…
Michel Rouzic
  • 1,013
  • 1
  • 9
  • 22
21
votes
1 answer

Attaching sources to a binary dylib in Xcode

I've a framework with a dylib in my iOS app which was compiled on another machine. I checked out the sources on my machine and tried instructing lldb to map the source code path using: settings set target.source-map /source/code/path/in/dylib/prefix…
Max Raskin
  • 1,042
  • 1
  • 14
  • 26
21
votes
1 answer

Private module map for a framework

I'm using this answer to create a module map to create a module for CommonCrypto so I can use it in a framework. Doing this however means that any projects that I use this framework in have access to CommonCrypto with import CommonCrypto - and even…
Rich
  • 8,108
  • 5
  • 46
  • 59
20
votes
5 answers

dyld: Library not loaded: /usr/local/lib/libmpfr.4.dylib

When I run "make" on a project I get this error: dyld: Library not loaded: /usr/local/lib/libmpfr.4.dylib Referenced from: /Users/Petrov/Downloads/mips/bin/../libexec/gcc/mipsel-elf/4.8.1/cc1 Reason: image not found There is no libmpfr.4.dylib…
Elizabeth Haker
  • 301
  • 1
  • 2
  • 3
18
votes
6 answers

.dylib file is missing

I am trying to compile my project in iOS 9. I am using XCode7. Here is how it looks like: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file:…
Jio
  • 1,146
  • 1
  • 9
  • 22
18
votes
6 answers

Conflict between dynamic linking priority in OSX?

There is a dynamic-linking-conflict between different libjpeg dynamic libraries on OSX. First there is a standard native libJPEG.dylib (in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/). But if you are using MacPorts, you can…
kamjagin
  • 3,614
  • 1
  • 22
  • 24
17
votes
2 answers

Xcode 4 adding dylib

I am trying to create and then add the dylib to a project. I created it by using the "Cocoa-Library" template and setting the type to "Dynamic" (not sure if it should be dynamic or static...). Then I created a simple obj-c class called Test and…
user635064
  • 6,219
  • 12
  • 54
  • 100
16
votes
1 answer

When building a MACOSX_BUNDLE in CMake, how to copy the linked dynamic libraries into the bundle?

We build an OS X application, released in a .app bundle. The build management is implemented using CMake. This application depends on both CMake target libraries (possibly imported) and libraries available in the xxx_LIBRARIESvariables populated by…
Ad N
  • 7,930
  • 6
  • 36
  • 80
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
3 answers

Xcode keeps searching dylib at wrong path

Thats my error: dyld: Library not loaded: /usr/local/lib/libofa.0.dylib Referenced from: /sers/david/Projekte/Test/build/Debug/Test.app/Contents/MacOS/Test Reason: image not found I've done some research and changed the path inside the dylib with…
david
  • 3,553
  • 4
  • 28
  • 39
15
votes
8 answers

dyld: Library not loaded. Reason : no suitable image found

I've looked at a bunch of answers here and none have fixed my issue. I have an Xcode workspace with a custom framework and an iOS app project. The project has been working fine until this morning, now it builds but immediately crashes: dyld:…
olynoise
  • 2,016
  • 2
  • 19
  • 32
14
votes
1 answer

How do I retrieve the path to my dylib at runtime?

On OS X, how can code in a dylib find the path it was loaded from, at runtime? Coming from a Windows background, I'm used being able to call GetModuleFileName(dllHandle,...). There exists NSGetExecutablePath() which will give me the path of the…
snowcrash09
  • 4,694
  • 27
  • 45
14
votes
1 answer

Compile simple hello world ZeroMQ C example, compile flags?

Trying to compile the example hello_world.c from the zeromq tutorial: http://zguide.zeromq.org/page:all#Ask-and-Ye-Shall-Receive Pretty sure I have everything installed in OSX Mountain Lion. clang -Wall hwserver.c -o hwserver gives me an…
Nick Desaulniers
  • 2,046
  • 3
  • 25
  • 47
13
votes
1 answer

Load a Mac binary as a dynamic library

I am doing some reverse engineering with a binary executable without sources. On Windows what I can do is load an executable file (EXE) with LoadLibrary, just as it was a DLL file. If the loaded file is not relocatable I can simply relocate my…
kuba
  • 7,329
  • 1
  • 36
  • 41
1
2
3
53 54