캐시 정리 및 의존성 정리
watchman watch-del-all
rm -rf node_modules
rm -rf ios/Pods
rm -rf ios/Podfile.lock
rm -rf ~/Library/Developer/Xcode/DerivedData
npm cache clean --force
npm install
cd ios
pod install --repo-update
cd ..
✅ 4. Xcode에서 다시 열기
open ios/CheongjeongEarth.xcworkspace
2. 의존성 재설치
rm -rf ios/Pods ios/Podfile.lock
cd ios
pod install --repo-update
cd ..
cd ios && pod install && cd ..
cd ios && rm -rf Pods Podfile.lock && pod install && cd ..
npx react-native run-ios
cd android && ./gradlew clean && cd ..
npx react-native run-android
npm install
cd android && ./gradlew clean && cd ..
cd ios && pod install && cd ..
npx react-native run-android
시뮬레이터 홈 화면 나가기
⌘ + Shift + H (Command + Shift + H)
연결된 Android & Ios 한번에 연결
npm install --save-dev concurrently
npm run start:all
'React Native' 카테고리의 다른 글
Query vs Mutation (0) | 2025.06.20 |
---|---|
코드 푸쉬 (0) | 2025.06.20 |
애니메이션과 useNativeDriver (1) | 2025.06.05 |
KeyboardAvoidingView + ScrollView VS keyboardAwareScrollView 차이 (0) | 2025.06.05 |
Mac에서 React Native CLI로 개발 환경 구축하기 (1) | 2025.05.30 |