From c0199a38fdf9c08f009df367e00a47c43a7c5ec2 Mon Sep 17 00:00:00 2001 From: Efim Poberezkin <8711996+efim-poberezkin@users.noreply.github.com> Date: Sat, 29 Jan 2022 16:53:24 +0400 Subject: [PATCH] add readme for ios setup (#234) --- apps/ios/README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 apps/ios/README.md diff --git a/apps/ios/README.md b/apps/ios/README.md new file mode 100644 index 0000000000..7e358e9c2d --- /dev/null +++ b/apps/ios/README.md @@ -0,0 +1,43 @@ +# Setup for iOS + +## Prerequisites + +- `mac2ios` executable and in PATH: + + https://github.com/zw3rk/mobile-core-tools + +- Folders: + + ```sh + mkdir -p ./apps/ios/Libraries/mac ./apps/ios/Libraries/ios ./apps/ios/Libraries/sim + ``` + +## Update binaries + +1. Download binary distribution from `aarch64-darwin:lib:simplex-chat.aarch64-darwin` job at +https://ci.zw3rk.com/jobset/zw3rk/simplex-chat +and extract binaries to `./apps/ios/Libraries/mac`. + +2. Prepare binaries for iOS and for Xcode simulator: + + ```sh + chmod +w ./apps/ios/Libraries/mac/* + cp ./apps/ios/Libraries/mac/* ./apps/ios/Libraries/ios + cp ./apps/ios/Libraries/mac/* ./apps/ios/Libraries/sim + for f in ./apps/ios/Libraries/ios/*; do mac2ios $f; done | wc -l + for f in ./apps/ios/Libraries/sim/*; do mac2ios -s $f; done | wc -l + ``` + +3. Put binaries into `./apps/ios/Libraries`. + + For simulator: + + ```sh + cp ./apps/ios/Libraries/sim/* ./apps/ios/Libraries + ``` + + For iOS: + + ```sh + cp ./apps/ios/Libraries/ios/* ./apps/ios/Libraries + ```