Node version in use: v18.17.0
JAVA Version: JDK 17
Prerequisites: Have Android Studio and Xcode in your system.
source ~/.bash_profile
To manually set $JAVA_HOME
env variable:
export "JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home";
Check it using this command:
echo $JAVA_HOME
yarn
cd android && ./gradlew clean && cd ..
yarn fix-boost && cd ios && pod install
In case if anything fails during pod install
:
Delete Podfile.lock
file in the ios
folder and run the following commands:
# rm -rf ~/.cocoapods/repos/trunk
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
pod setup
pod install
yarn android
yarn ios