If you are using a M1 you might need to update ruby to version 2.7.5 or 3.x.x. Postponing the upgrade now so we don't disturb the current builds until the CI is updated to M1 and everybody get their M1s.
Building
Install Xcode
After installing Xcode, open it to begin the Command Line Tools installation. After finished, make sure that a valid CL Tool version is selected in Xcode > Preferences > Locations > Command Line Tools.
Install Git submodules
$ git submodule update --init
If the submodules are not fetched, run:
$ git submodule update --recursive --force
If you don't have read access to My-Wallet-V3-Private:
Open .gitmodules and modify My-Wallet-V3 entry url to the public repo:
If nvm is failing to install, please make sure you are installing it with the curl command above. If it still fails, check their website for a possibly newer installer.
Install Yarn
$ brew install yarn
Checkout ios branch from Submodules/My-Wallet-V3
$ cd Submodules/My-Wallet-V3
$ git checkout ios
$ cd ../..
Install and build js files
$ sh scripts/install-js.sh && sh scripts/build-js.sh
If the above command is failing you might need to fix the missing python binary on systems with python3 installed.
Install python3 using homebrew:
$ brew install python3
You should see those Caveats at the end of a successful installation:
==> CaveatsPython has been installed as/opt/homebrew/bin/python3Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to`python3`, `python3-config`, `pip3` etc., respectively, have been installed into/opt/homebrew/opt/[email protected]/libexec/bin
The first lines tells us python3 binary was installed.
The second part tells us that there are unversioned aliases also installed in another directory that is not in our PATH but we can add to it if we want to make those unversioned aliases available.
To do so, edit your ~/.zshrc or ~/.bashrc depending on which shell do you use.
Find a line that starts with export PATH and add the aliases path to it.
Example below:
$ cd ./Submodules/OpenSSL-for-iPhone
$ ./build-libssl.sh --cleanup --archs="x86_64 arm64"
Add production Config file
Clone the wallet-ios-credentials repository and copy it's Config directory to this project root directory, it contains a .xcconfig for each environment:
Clone wallet-ios-credentials repository and copy it's Firebase directory into Blockchain directory, it contains a GoogleService-Info.plist for each environment.
请发表评论