- Linux: git and make
sudo apt install git makeon the terminal
git clone https://github.com/status-im/status-react cd status-react
We created a special script that installs everything Status needs. However, this script works only
for macOS and Ubuntu Linux. If you use another Linux distribution, please, install all dependencies manually (you can find the list below).
It’s also better to make sure that you have Node Version Manager installed before running this script.
The reason is simple — NVM provides much more flexibility and allows to have several NPM versions installed.
Just run this to install all dependencies (you might need to enter your account password). In order to make things as practical as possible, the script will auto-accept the Android SDK license agreements:
At the end of the script, close the terminal and open a new one, so that the build environment is properly set up with your updated profile.
make setup script prepares and installs the following:
- Java 8 (from Homebrew on Mac and from
- Clojure and Leiningen
- nvm (see note below)
- Node.js (see note below)
- React Native CLI and Watchman
- Android SDK (at
~/Android/Sdk/on Linux and
- Android NDK (at
~/Android/Sdk/ndkon Linux and
Note 1: It can take up to 20 minutes depending on your machine and internet connection speed.
Note 2: If you don’t have
nvm will be installed, and then used to install the required version of
If you don’t have
nvm AND already have
node installed on your machine then nothing will happen.
Note 3: Specific tool versions used are maintained in the .TOOLVERSIONS file. On Homebrew (MacOS) the scripts will attempt to upgrade/downgrade as required to ensure the environment matches the requirements.
After you installed all the dependencies, you need to run two processes — the build process and React Native packager. Keep both processes running when you develop Status.
Just run one of these commands in the first terminal window:
make startdev-ios-simulator make startdev-ios-real make startdev-android-avd make startdev-android-genymotion make startdev-android-real
By doing this you will start the compilation of ClojureScript sources and run re-frisk (a tool for debugging). You should wait until it shows you
Prompt will show when Figwheel connects to your application before running the React Native packager.
For additional information check the following:
Do this in the second terminal window:
make prepare-ios # first time only, or whenever you switch target platforms make run-ios
If you wish to specify the simulator, just run
make run-ios SIMULATOR="iPhone 7".
You can check your available devices by running
xcrun simctl list devices from the console.
You can also start XCode and run the application there. Execute
open ios/StatusIm.xcworkspace, select a device/simulator and click Run.
Note: Of course, you need to install XCode first in both cases. Just go to Mac AppStore to do this.
Installation script installs Android SDK (if your environment doesn’t define
ANDROID_SDK_ROOT) and Android NDK.
Should you run into any issues getting the Android SDK set up, then you need to install it yourself. The easiest way to do this is to install Android Studio — it will install almost everything for you.
There is a difficult way for those who don’t want/need Android Studio.
In this case you have to do the following:
- Install Android SDK from you package manager (
brew install android-sdk,
sudo apt-get install android-sdk, …) or download it manually here;
- Add several env variables to your profile (.bashrc, .zshrc, …) — installer should say what are these variables and their values;
android update sdk --no-uito update SDKs;
sdkmanagerfrom your machine and install the latest Android SDKs;
- Optional: If you want to use AVD (Android Virtual Device, emulator), please, check this documentation;
- Optional: If you don’t like AVD, you can also use Genymotion;
Once Android SDK is set up, execute:
make prepare-android # first time only, or whenever you switch target platforms make run-android
android-sdk-16 not found usually mean that you simply need to install missing SDKs. Run
sdkmanager for that.
Check the following docs if you still have problems:
There are several ways of installing Node.js on your machine.
One of the most convenient and easy is by using Node Version Manager (nvm). Our setup script installs
nvm if needed and
node is not found on your system.
nvm is already installed,
make setup simply does the following:
nvm install 10 nvm alias status-im 10 nvm use status-im
Some developers prefer to use Android SDK integrated in Android Studio. Of course, it doesn’t matter
for the build process — just make sure that
ANDROID_SDK_ROOT points to a right location and you have all the SDKs installed.
If you need to test a mobile build with a custom locally built status-go dependency, you can build it by following this process:
- Ensure the
STATUS_GO_HOMEenvironment variable is set to the path of your local status-go repo (see Build status-go page for more information on requirements);
- From the root of the status-react repo, run
scripts/bundle-status-go.sh <platform>, where
- This will generate a build artifact under the status-react repo, and will be considered prioritary in the dependencies until it is deleted (e.g. by running
NOTE: Desktop builds currently always download and build status-go locally.
E.g. if you want to check existing accounts in the device, run this function in the REPL:
(get-in @re-frame.db.app-db [:accounts/accounts])
Assuming re-frisk is running in port 4567, you can just navigate to http://localhost:4567/ in a web browser to monitor app state and events.
Some developers are experiencing errors compiling for iOS on Xcode 10 on MacOs Mojave:
error: Build input file cannot be found: 'status-react/node_modules/react-native/third-party/double-conversion-1.1.6/src/cached-powers.cc'
To fix similar errors run the following commands:
cd ios pod update cd .. cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../ cd node_modules/react-native/third-party/glog-0.3.4/ && ../../scripts/ios-configure-glog.sh && cd ../../../../
Now you should be able to compile again. The issue reference is here.
Some developers see the error
Exception in thread "main" java.lang.NoSuchFieldError: VAR, compiling:((..)/status-react/build.clj:1:1) when running the
clj -R:dev buid.clj watch command (e.g., via
This happens when you are running an earlier version of Clojure that is incompatible with
cljs.build.api. The solution is to upgrade to the latest version of Clojure. E.g., for macOS
$ brew upgrade clojure ==> Upgrading 1 outdated package: clojure 220.127.116.112 -> 18.104.22.1687