Questions tagged [dylib]

Xcode Dynamic Library file extension

803 questions
10
votes
1 answer

brew doctor: Warning: Unbrewed dylibs were found in /usr/local/lib

running brew doctor gives me this: Warning: Unbrewed dylibs were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected…
tbarbe
  • 1,299
  • 2
  • 15
  • 22
10
votes
3 answers

dyld not loaded Reason: image not found libopencv_core.2.4.dylib

I'm still quite new to Objective C and Xcode, but I just finished a small app that uses the openCV libopencv_core.2.4.2.dylib. When I went to open the final built app on another machine, OS X threw me this error: Dyld Error Message: Library not…
kava
  • 193
  • 1
  • 2
  • 13
9
votes
1 answer

Compile a binary file for linking OSX

I'm trying to compile a binary file into a MACH_O object file so that it can be linked it into a dylib. The dylib is written in c/c++. On linux the following command is used: ld -r -b binary -o foo.o foo.bin I have tried various option on OSX but to…
Satpal
  • 309
  • 2
  • 8
9
votes
1 answer

Hiding the symbols of a static library in a dynamic library in MAC OS X?

I am using a static library (eg: boost.a) and some *.o files to create a dynamic library (Eg: libdynamic.dylib) in MAC OS X. I am able to hide the symbols from the *.o files since I created those by -fvisibility=hidden flag. But, I can't hide the…
Rajasekhar
  • 91
  • 1
  • 2
9
votes
3 answers

How can I link a dynamic library in Xcode?

I am currently developing a program in Qt and it uses the library libqextserialport.1.dylib. I build it and run in x-code and it spits back: dyld: Library not loaded: libqextserialport.1.dylib Referenced from:…
Sam
  • 864
  • 2
  • 11
  • 21
9
votes
1 answer

Create ios framework with dylib

I have 60k lines of pascal code (don't ask :-) ). Compiled a dylib for armv7 and aarch64 with free pascal. It works on device but can not upload it to appstore in case of Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app…
9
votes
2 answers

CMake: Run-time error (dyld: Library not loaded) for dynamically linked resources on MacOS

Problem On MacOS, I get linking problems at runtime for a CMake project that depends on dynamically linked resources – but only after installing the project! The problem does not occur when I only build the binary without installing it. $…
normanius
  • 8,629
  • 7
  • 53
  • 83
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
2 answers

Issue after submitting my app to TestFlight

We have discovered one or more issues with your recent delivery for "AppName". To process your delivery, the following issues must be corrected: Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the…
Yhondri
  • 837
  • 1
  • 9
  • 10
9
votes
1 answer

Statically link OpenSSL in XCode

I am trying to link libssl.a and libcrypto.a static libraries in XCode command line project [under Link Binary With Libraries]. I have included Openssl header files in search path. Compilation succeeds but execution fails with dyld: Library not…
ZestyZest
  • 911
  • 13
  • 27
9
votes
1 answer

convert MH_EXECUTE to MH_DYLIB (mach-o)

The problem: I have 2 MH_EXECUTE iOS binary files (compiled, no source code). Lets name them binary1 and binary2. I try to switch between them before UIApplicationMain is called! 1 try I successfully do this with binary1 and one dylib. So I try to…
unstable
  • 101
  • 3
9
votes
3 answers

git command-line on Mac OS error "dyld: Symbol not found: ___strlcpy_chk"

I installed git on Mac os, when i try to create a new repository with git init, i get this error : dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk Referenced from: /usr/local/git/bin/git Expected in:…
Nabil Lemsieh
  • 716
  • 4
  • 11
  • 27
9
votes
3 answers

Handling "dyld: lazy symbol binding failed: Symbol not found" error when nm does not find symbol

I have a fat (32- and 64-bit) Intel binary called myBinary that fails to run on another workstation running Mac OS X 10.8.2: $ myBinary dyld: lazy symbol binding failed: Symbol not found: __ZNSt8__detail15_List_node_base7_M_hookEPS0_ Referenced…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
9
votes
2 answers

linking and using a C++ library with an Objective-C application

I'm writing a graphical application using Objective-C for the front end and C++ for the graphics processing and network communication. I read around on Apple's site looking for a way to link either a .dylib or .so with my C++ code in it to my Xcode…
Robbie
  • 831
  • 2
  • 14
  • 22
8
votes
2 answers

Can .dylib dynamically-linked libraries be packaged into an executable?

(Yes, I understand that the whole point of dylib is that it loads dynamically, but I’m trying to create a self-contained package.) I’ve got an executable that I built from the command line (on macOS Lion, if it matters). I delivered the executable…
Olie
  • 24,597
  • 18
  • 99
  • 131