Fix iOS example Readme and script.

GitOrigin-RevId: 18bd297e7282c7d70673d5508595f136f2ddfd31
This commit is contained in:
levlam 2018-10-30 01:26:22 +03:00
parent 53ecae8b0a
commit ad686717e7
2 changed files with 7 additions and 6 deletions

View File

@ -7,12 +7,13 @@ If you need only a macOS build, take a look at our build instructions for [macOS
For example of usage take a look at our [Swift example](https://github.com/tdlib/td/tree/master/example/swift).
To compile `TDLib` you will need to:
* Install the latest Xcode command line tools, for example, via `xcode-select --install`.
* Install other build dependencies, for example, using [Homebrew](https://brew.sh):
* Install the latest Xcode via `xcode-select --install` or downloading it from [Xcode website](https://developer.apple.com/xcode/).
It is not enough to install only command line developer tools to build `TDLib` for iOS.
* Install other build dependencies using [Homebrew](https://brew.sh):
```
brew install gperf cmake
brew install gperf cmake coreutils
```
* If you don't want to build `TDLib` for macOS, you can pregenerate required source code files using CMake prepare_cross_compiling target:
* If you don't want to build `TDLib` for macOS, you can pregenerate required source code files using `CMake` prepare_cross_compiling target:
```
cd <path to TDLib sources>
mkdir native-build

View File

@ -1,5 +1,5 @@
#/bin/sh
td_path=$(realpath ../..)
td_path=$(grealpath ../..)
rm -rf build
mkdir -p build
@ -9,7 +9,7 @@ platforms="macOS iOS watchOS tvOS"
for platform in $platforms;
do
echo "Platform = ${platform} Simulator = ${simulator}"
openssl_path=$(realpath ../third_party/openssl/${platform})
openssl_path=$(grealpath ../third_party/openssl/${platform})
echo "OpenSSL path = ${openssl_path}"
openssl_crypto_library="${openssl_path}/lib/libcrypto.a"
openssl_ssl_library="${openssl_path}/lib/libssl.a"