본문 바로가기
React Native

RN 빌드할 때 자주 쓰는 명령어

by yj.yoon 2023. 2. 19.

빌드를 할 때 캐쉬가 쌓이거나 패키지가 꼬이거나(?) 하는 등의 원인으로 안될 때가 있는데, 그 때마다 일단 쳐보는 명령어

 

 

rm -fr node_modules

Xcode - product - clean OR android - build - clean 실행

yarn

cd ios

pod install OR pod install --repo-update

yarn start --reset-cache

 

 

rm -rf ~/Library/Developer/Xcode/DerivedData/* : xcode cache 제거

 

pod install 한 줄 명령어

cd ios && pod install && cd ..