Skip to content

Commit

Permalink
add readme for ios setup
Browse files Browse the repository at this point in the history
  • Loading branch information
spaced4ndy committed Jan 29, 2022
1 parent d97a8c1 commit 00c4126
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions apps/ios/README.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 00c4126

Please sign in to comment.