LoginSignup
20
15

More than 1 year has passed since last update.

React Native キャッシュの削除方法

Last updated at Posted at 2018-12-20

だいたいこれでうまくいく。
ブランチ切替時とか毎回やるようにしてる

watchman watch-del-all
lsof -n -P -i :8081 -t | xargs kill
rm -rf ios/build
rm -rf android/app/build
rm -rf node_modules
npm install
# yarn使ってなくても yarn.lockがあったら削除したほうがいいかも

lsofの行はchromeのデバッガ起動してたらchromeもおちます。

さらにiOSでビルドできない場合は以下も有効な場合があります。React Native自体のバージョンアップ時など。

rm -rf ~/Library/Developer/Xcode/DerivedData
20
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
15