Before building iOS Libraries, please have a look at the Pre-requisites
- Clone the repository.
git clone https://github.com/fotolockr/CakeWallet.git
- Install homebrew
- Install loki dependencies:
brew install pkgconfig
brew install cmake
brew install zeromq
- Build the loki iOS libraries.
./install.sh
./build.sh
- Install dependencies from Pod.
pod install
You may get an error such as:
ld: symbol(s) not found for architecture armv7
If you get this issue then make sure that boost has been correctly built. You can check this by seeing if it exists at Libraries/boost/builds/libs
. If the folder doesn't exist then run ./scripts/install_boost.sh
in the root director and check to see if any errors occur there.
If you're having problems building with Xcode 10 or above then change to the Legacy Build System
Currently you will fail to build the loki shared libraries because of some errors. Here are fixes that you should apply:
src/crypto/cn_heavy_hash.hpp:60
- #if defined(__aarch64__)
+ #if(0)
#pragma GCC target ("+crypto")
#include <sys/auxv.h>
CMakeLists_IOS.txt:28
set (IOS True)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D IOS")
CMakeLists.txt:555
elseif(IOS AND ARCH STREQUAL "arm64")
message(STATUS "IOS: Changing arch from arm64 to armv8")
set(ARCH_FLAG "-march=armv8")
+ elseif(IOS AND ARCH STREQUAL "x86_64")
+ message(STATUS "IOS: Changing arch from x86_64 to x86-64")
+ set(ARCH_FLAG "-march=x86-64")
else()
set(ARCH_FLAG "-march=${ARCH}")
if(ARCH STREQUAL "native")
src/wallet/CMakeLists.txt:77
- if (NOT LOKI_DAEMON_AND_WALLET_ONLY)
+ if (0)
cmake/CheckTrezor.cmake:32
# Use Trezor master switch
+ if (USE_DEVICE_TREZOR)
- if (0)
To build the application from testnet, you need to set the TESTNET
pre-processor macro to true.
You can do this by doing the following:
- Select your project (Make sure you are not selecting a target)
- Go to Build Settings
- Search "Preprocessor Macros"
- Add
USE_TESTNET=1
toDEBUG
orRELEASE
depending on what your needs are. - Search "Swift Compiler - Custom Flags"
- Add
USE_TESTNET
underActive Compilation Conditions
We use forked the repo of ofxiOSBoost. We do this ONLY for more convenient installation process.