Skip to content

Instantly share code, notes, and snippets.

@ronal2do
Created September 9, 2019 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronal2do/53f09bf3d61f0a9d62954678220cdc70 to your computer and use it in GitHub Desktop.
Save ronal2do/53f09bf3d61f0a9d62954678220cdc70 to your computer and use it in GitHub Desktop.
echo 'remove cache'
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/metro-*
watchman watch-del-all
npm cache verify
# echo 'removing derived data'
rm -rf ~/Library/Developer/Xcode/DerivedData
echo 'removing pods and node modules'
cd ios
pod deintegrate
pod cache clean --all
cd ../
rm -rf ios/Pods
rm -rf ios/Podfile.lock
rm -rf ios/build
rm -rf node_modules
rm -rf package-lock.json
echo 'cocoapods install'
gem install cocoapods
echo 'brew'
brew update && brew upgrade
echo 'installing node modules'
npm i
# mostly for any legacy stuff
echo 'react-native link'
react-native link
echo 'installing pods'
cd ios
pod update
pod install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment