From ad686717e741e9171cf2cc696ec55bacffc75989 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 30 Oct 2018 01:26:22 +0300 Subject: [PATCH] Fix iOS example Readme and script. GitOrigin-RevId: 18bd297e7282c7d70673d5508595f136f2ddfd31 --- example/ios/README.md | 9 +++++---- example/ios/build.sh | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/example/ios/README.md b/example/ios/README.md index 9414bef4..6104bcdc 100644 --- a/example/ios/README.md +++ b/example/ios/README.md @@ -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 mkdir native-build diff --git a/example/ios/build.sh b/example/ios/build.sh index 9970008a..4c2fde1e 100755 --- a/example/ios/build.sh +++ b/example/ios/build.sh @@ -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"