diff --git a/docs/nix_dev_env.md b/docs/nix_dev_env.md --- a/docs/nix_dev_env.md +++ b/docs/nix_dev_env.md @@ -48,6 +48,9 @@ - [Mobile prerequisites](./nix_mobile_setup.md#nix-mobile-prerequisites) - [Xcode](./nix_mobile_setup.md#xcode) - [Xcode settings](./nix_mobile_setup.md#xcode-settings) + - [Homebrew](./nix_mobile_setup.md#homebrew) + - [idb (iOS Development Bridge)](./nix_mobile_setup.md#idb) + - [Reactotron](./nix_mobile_setup.md#reactotron) - [Android Studio](./nix_mobile_setup.md#android-studio) - [Android SDK](./nix_mobile_setup.md#android-sdk) - [Android Emulator](./nix_mobile_setup.md#android-emulator) diff --git a/docs/nix_mobile_setup.md b/docs/nix_mobile_setup.md --- a/docs/nix_mobile_setup.md +++ b/docs/nix_mobile_setup.md @@ -40,6 +40,28 @@ Install [Homebrew](https://brew.sh/), a package manager for macOS. +### idb + +Flipper relies on Facebook’s idb tool to debug iOS apps running on your device. We’ll need to install it: + +``` +brew tap facebook/fb +brew install idb-companion +pip3 install --user --upgrade fb-idb +``` + +Since we run `pip3 install` with `--user` instead of running it with `sudo`, the `idb` executable gets installed in your userdir. For me, running MacOS with Python 3.9, it got installed in `~/Library/Python/3.9/bin/idb`. For Flipper to be able to talk to `idb`, you’ll need to set the IDB Binary Location in the Flipper Settings. + +If you have trouble getting Flipper to work with a physical iOS device, it may be due to Python weirdness. The above steps have been tested with Python 3.9 sourced from Homebrew. Let @ashoat know if you have any trouble! + +### Reactotron + +Reactotron is an event tracker and logger that can be used to aid in debugging on React Native. + +``` +brew install reactotron && brew upgrade reactotron +``` + # Nix Android prerequisites ## Android Studio @@ -109,28 +131,6 @@ To install it, open Flipper and click on the Plugin Manager on the top left sidebar. Type in “redux-debugger“ in the Install Plugins search bar and install the Flipper plugin with that name. -## idb - -Flipper relies on Facebook’s idb tool to debug iOS apps running on your device. We’ll need to install it: - -``` -brew tap facebook/fb -brew install idb-companion -pip3 install --user --upgrade fb-idb -``` - -Since we run `pip3 install` with `--user` instead of running it with `sudo`, the `idb` executable gets installed in your userdir. For me, running MacOS with Python 3.9, it got installed in `~/Library/Python/3.9/bin/idb`. For Flipper to be able to talk to `idb`, you’ll need to set the IDB Binary Location in the Flipper Settings. - -If you have trouble getting Flipper to work with a physical iOS device, it may be due to Python weirdness. The above steps have been tested with Python 3.9 sourced from Homebrew. Let @ashoat know if you have any trouble! - -## Reactotron - -Reactotron is an event tracker and logger that can be used to aid in debugging on React Native. - -``` -brew install reactotron && brew upgrade reactotron -``` - ## Android Emulator In order to test the Android app on your computer you’ll need to set up an Android Emulator. To do this we’ll need to open up the Virtual Device Manager in Android Studio. You can access the Virtual Device Manager from the “Welcome to Android Studio” screen that pops up when you first open the application, from More Actions → Virtual Device Manager. If you already have a project open, you can access it from Tools → Virtual Device Manager.