I am trying to migrate my project from iOS 8 to iOS 9. Any I am getting some library errors. I am using XCode7-beta6.
Here is how it looks like:
error: /Applications/Xcode-beta 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications/Xcode-beta 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libz.dylib (No such file or directory)
libz.dylib is included in "Link binary with libraries".
Now I know that this dylib is a leftover from past because if I remove it then try to add it again I find tbd files instead of dylib files.
There is an answer here: Link for working around this issue but I have tried adding libz in other linker flags as -libz and also -l. None of them worked.
How can I make the project find the library?
Thanks