.dylib file is missing
20,365
Solution 1
At last i fixed it. https://forums.developer.apple.com/thread/4572. Add the dylib files into "Other Linker Flags".
Solution 2
Here's what worked for me.
- Go into your Targets, Build Phases, "Link Binary with libraries", and click on the + button.
- Click on the "Add other..." button
- Hit CMD+Shift+G to open the "Go to folder" dialog, and cut'n'paste the folder:
/usr/lib
- In the top-right search box, type in a section of your "missing" file, which for me, was
libsqlite3.dylib
, then click on Open.
This should link in the file which was previously missing.
(Tested with Xcode 7.1)
Solution 3
Remove it from "Link Binary with Libraries" fixed my error.
Solution 4
libz.dylib is now found under libz.tbd
the .tbd files are new "text-based stub libraries", that provide a much more compact version of the stub libraries for use in the SDK
Comments
-
Jio over 3 years
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: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libz.dylib (No such file or directory) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libiconv.dylib (No such file or directory)
My dylib files shows in red color so i tried to add it again but the is no dylib files, all the files are shown in
.tbd
instead of.dylib
. Please help me on this.. -
Jio almost 9 yearserror: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libc++.tbd is not an object file (not allowed in a library)
-
Teja Nandamuri almost 9 yearsare you trying to integrate any other SDK into your project ? Or is it just a plain code template ?
-
Jio almost 9 yearsi am trying to integrate my own library to this project.. Both having .dylib libraries.
-
Jio almost 9 yearsHi fixed it... forums.developer.apple.com/thread/4572. Add the dylib files into "Other Linker Flags". Thanks Mr.T for the support
-
trojanfoe over 8 yearsI don't understand how this fixes the issue?
-
Jio over 8 yearsIts not my personal findings.. its from apple developer forums
-
Shobhakar Tiwari over 8 years@Jio for libxml2.dylib what exactly i need to add ??
-
Jio over 8 yearsYou need to add -lxml2
-
Rahul Iyer about 2 yearsAny idea how to add these flags via cmakelists ?