From c7104f775887c8bba29d303f323f7f53f4da3d74 Mon Sep 17 00:00:00 2001 From: Lynn Date: Wed, 18 Sep 2024 10:00:33 +0000 Subject: [PATCH] Update README.md for M1 installations --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 4ce4fb0..06bcd6d 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,24 @@ Once you have nvm running you can install node 14: nvm install v14.19.3 +#### On Apple Silicon M1 + +NodeJS 14 does not compile on the M1 architecture, so it has to be installed through Rosetta: https://devzilla.io/using-nodejs-14-with-mac-silicon-m1 . +To activate Rosetta and switch to intel emulation run: + + arch -x86_64 zsh + +Run + + arch + +again to verify that it returns "i386". +Now install node 14: + + nvm install v14.19.3 + +### 3. Yarn version + use npm to install yarn: npm install --global yarn @@ -127,6 +145,18 @@ iii. If you are building the app with XCode make sure you are running this as we ### Troubleshooting +#### [MacOS M1] Flipper problems + +If a bug in the currently used Flipper version prevents building the project, comment out the respective line in the podfile, like so: + + #use_flipper!() + +Run + + pod install + +from the ios directory again to reload the dependencies. + #### [MacOS] Java problems Make sure that you have Java 1.8 by running `java -version`.