Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Anh Viet authored and Nethius committed Mar 24, 2023
1 parent d64d9b9 commit 46f31c2
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,29 @@ Look to the `build_macos.sh` and `build_windows.bat` scripts in `deploy` folder
1. First, make sure you have [XCode](https://developer.apple.com/xcode/) installed,
at least version 12 or higher.

2. We use `qmake` to generate the XCode project and then we "patch" it to add
extra components such as the wireguard, the browser bridge and so on. We patch
the XCode project using [xcodeproj](https://github.com/CocoaPods/Xcodeproj). To
install it:
2. We use QT to generate the XCode project. With XCode 13 or lower, we need QT version 6.3. With XCode 14 or higher, we need QT version 6.4. Install QT for macos in [here](https://doc.qt.io/qt-6/macos.html)

3. Install cmake is require. We recommend cmake version 3.25. You can install cmake in [here](https://cmake.org/download/)

4. You also need to install go >= v1.16. If you don't have it done already,
download go from the [official website](https://golang.org/dl/) or use Homebrew.
Latest version is recommended. Install gomobile
```bash
gem install xcodeproj # probably you want to run this command with `sudo`
export PATH=$PATH:~/go/bin
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
```
3. You also need to install go >= v1.16. If you don't have it done already,
download go from the [official website](https://golang.org/dl/) or use Homebrew.
Latest version is recommended.

4. Navigate inside client folder and generate the XCode project using our script:
5. Build project
```bash
cd client
./scripts/apple_compile.sh ios
export QT_BIN_DIR="<PATH-TO-QT-FOLDER>/Qt/<QT-VERSION>/ios/bin"
export QT_IOS_BIN=$QT_BIN_DIR
export PATH=$PATH:~/go/bin
mkdir build-ios
$QT_IOS_BIN/qt-cmake . -B build-ios -GXcode -DQT_HOST_PATH=$QT_BIN_DIR
```
Replace PATH-TO-QT-FOLDER and QT-VERSION to your environment

If you have more than one version of Qt installed, you'll most likely get
a "`qmake` cannot be found in your `$PATH`" error. In this case run this script
Expand Down

0 comments on commit 46f31c2

Please sign in to comment.