Tuesday, 23 February 2016

Dynamic library ".dylib" not found in Xcode7 | showing text based stub library ".tbd" in iOS9

I found some kind of way around (2 approaches)

1) Go to Target > Build Phases > Link Library with Libraries > + > Click on Add Other
2) "CMD" + SHIFT + G > type (/user/lib)
3) Now you can find ".dylib" select and add into your project.



Another approach:
You don't need to add library instead of you can add by changing the following option:

1) Go to Target > Build Settings > Other Linker Flags > Double click on section > + > -l{your library name}
For example: libiconv2.dylib = -liiconv2
                      libbz2.dylib = -libz2

NOTE: ".tbd" files are new "text-based stub libraries" that provide a much more compact version of stub libraries in SDK and it really helps to reduce its download size. Apple did a lot to strip the size of apps since Xcode7 and iOS9.

Developer Reference:

No comments:

Post a Comment