.dylib file is missing

Jio picture Jio · Sep 22, 2015 · Viewed 19.6k times · Source

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..

Answer

Jio picture Jio · Sep 22, 2015

At last i fixed it. https://forums.developer.apple.com/thread/4572. Add the dylib files into "Other Linker Flags".

enter image description here