Difference between .tdb and .dylib on iOS (Xcode 7)

I am trying to add libsqlite3.dylib to my project using Xcode 7 beta. I searched in "Link Binary with Libraries", but found such a library, libsqlite3.tdb .
Is there a difference between .tdb and. dylib ? Please describe the difference between the two and whether it will work on iOS 8 and below.

enter image description here

+7
ios xcode
source share
2 answers

To add .dylib, go to your project targets → Build phases → Link the binaries to the libraries → Click the plus button → Add another → press + shift + g → Enter "/ Usr / lib" → click "Go" → Search libz "→ Select from the list and click" Open. "

+7
source share

.dylib is a compiled binary containing machine code. .tdb is a text file similar to a middleware module card. I can only assume this is there so you can write Swift code and link it to the Unix libraries shared by Darwin / Linux. We will find out soon.

Here is the beginning of libssl.tdb

 --- archs: [ i386, x86_64 ] platform: macosx install-name: /usr/lib/libssl.0.9.8.dylib current-version: 0.9.8 compatibility-version: 0.9.8 exports: - archs: [ i386, x86_64 ] symbols: [ _BIO_f_ssl, _BIO_new_buffer_ssl_connect, _BIO_new_ssl, _BIO_new_ssl_connect, _BIO_ssl_copy_session_id, 
+9
source share

All Articles