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