-
Install Rust and rustup (https://www.rust-lang.org/install.html).
-
Install toolchains using command:
rustup target add aarch64-apple-ios armv7-apple-ios armv7s-apple-ios i386-apple-ios x86_64-apple-ios
-
Install cargo-lipo:
cargo install cargo-lipo
-
Install required native libraries and utilities:
brew install libsodium brew install zeromq brew install cmake
-
Setup environment variables:
export PKG_CONFIG_ALLOW_CROSS=1 export CARGO_INCREMENTAL=1
-
Edit script build-libindy-core-ios.sh: set the following variables to fit your environment:
export OPENSSL_DIR=/usr/local/Cellar/openssl/1.0.2k export EVERNYM_REPO_KEY=~/Documents/EvernymRepo export LIBINDY_POD_VERSION=0.0.1
OPENSSL_DIR - path to installed openssl library
EVERNYM_REPO_KEY - path to file with private key to be authorized on deb server
LIBINDY_POD_VERSION - version of libindy-core pod to be built
-
Run the script. Validate the output that all goes well.
-
Go to
Podspec
dir. -
Create directory with name defined in LIBINDY_POD_VERSION:
mkdir LIBINDY_POD_VERSION
-
Copy libindy-core.podspec.json to that new directory from some previous version.
-
Edit this json -> change version field to LIBINDY_POD_VERSION.
-
Add new directory and file inside to git repository.
-
Commit to master branch.
-
for all projects which using libindy-core do not forget to make:
pod repo update pod install