tdlight/example/ios
Arseny Smirnov 1424b2037e Trying to add AppleTvOs support
GitOrigin-RevId: 923552a936613d5e30361bb354709337e8b0a990
2018-02-15 00:01:28 +03:00
..
build-openssl.sh Ios build example 2018-02-14 13:19:12 +03:00
build.sh Trying to add AppleTvOs support 2018-02-15 00:01:28 +03:00
README.md tqueue: remove dl_print_backtrace_gdb 2018-02-14 13:29:54 +03:00

Build for iOS

Bellow are instructions for building TdLib for iOS, watchOS and also macOS.

If you need just macOS build take a look here.

For example of usage take a look here.

Build OpenSSL

First, you should build OpenSSL library for ios

./build-openssl.sh

In this example we are using scripts from Python Apple support, but any other OpenSSL builds should work too. Libraries will be stored in third_party/openssl/<platfrom>. The next script will rely on this location.

Build TdLib

Run:

./build.sh

This may take a while, because TdLib will be build about 8 times. As an upside resulting library for iOS will work on any architecture (arv7, armv7s, arm64) and even on a simulator. We use CMake/iOS.cmake toolchain, other toolchains may work too.

Libraries will be store in tdjson directory.