From fca00d20a471e9b9b9a4a85bbc97d0a768dbcf87 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 5 Feb 2024 15:25:28 -0800 Subject: [PATCH] update docs to include info on installing `cocoapods` (#2744) * update docs to include info on installing `cocoapods` * wording --- docs/build.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/build.md b/docs/build.md index c0ffefee..c05e9a34 100644 --- a/docs/build.md +++ b/docs/build.md @@ -3,10 +3,22 @@ ## App Build - Set up your environment [using the react native instructions](https://reactnative.dev/docs/environment-setup). +- If you're running macOS, make sure you are running the correct versions of Ruby and Cocoapods: + - Check if you've installed Cocoapods through `homebrew`. If you have, remove it: + - `brew info cocoapods` + - If output says `Installed`: + - `brew remove cocoapods` + - If you have not installed `rbenv`: + - `brew install rbenv` + - `rbenv install 2.7.6` + - `rbenv global 2.7.6` + - Add `eval "$(rbenv init - zsh)"` to your `~/.zshrc` + - From inside the project directory: + - `bundler install` - Setup your environment [for e2e testing using detox](https://wix.github.io/Detox/docs/introduction/getting-started): - - yarn global add detox-cli - - brew tap wix/brew - - brew install applesimutils + - `yarn global add detox-cli` + - `brew tap wix/brew` + - `brew install applesimutils` - After initial setup: - Copy `google-services.json.example` to `google-services.json` or provide your own `google-services.json`. (A real firebase project is NOT required) - `npx expo prebuild` -> you will also need to run this anytime `app.json` or native `package.json` deps change