IOS. TDB instead of. dylib

Source: Internet
Author: User

Original link: http://www.meniny.cn/2015/09/22/00-00-01-iOS_Xcode_7_tbd/

Many of the small partners who upgraded Xcode 7 said they were stunned when they introduced the dynamic library, because the familiar was .dylib gone and replaced .tbd .

Where's dylib?

.dylib In fact it is still in the original position, and we can .tbd Find them by parsing, to use the original .dylib file to do this:

  • Select Target
  • Select BuildPhases
  • Expand Link Binary With Libraries
  • Click +
  • Click Add other
  • Press ? + ? + G
  • Input /usr/lib/
What is the. tbd?

After a hard search, still no (!!!) Any valuable literature, only the Apple Developer Forum has an official answer from Apple:

For those who is curious, the. tbd files are new "text-based stub Libraries", which provide a much more compa CT version of the stub libraries for use in the SDK, and help to significantly reduce its download size.

Simply put, it is .tbd also the product of Apple's policy of compressing IOS systems and applying volume.

. TBD made a mistake.

If you are using an .tbd error like this:

warning:skipping file '/users/me/xcode7/xcode-beta.app/contents/developer/platforms/iphoneos.platform/developer/ Sdks/iphoneos9.0.sdk/usr/lib/libz.tbd ' (unexpected file type ' text ' in Frameworks & Libraries build phase) "

Please refer to the following workaround:

To work around this issue for now, please:

  • Delete all references to. tbd files from either your linked libraries phase, or from the copied bundle resources phase (WH Ere they sometimes would be added).
  • ADD the library want to link manually to the ' other Linker Flags ' build settings, by adding the argument: -l<library_name> -lsqlite3 " (without quotes)).

Other words:

  • Remove all  .tbd   reference, whether   Link Binary with Libraries   or copy Bundle Resources
  • Build Settings Other Linker Flags Manually add each of the libraries you want to import -l<library_name> , such as the one you want to import, sqlite3 -lsqlite3 in the + =.

IOS. TDB instead of. dylib

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.