-
[RN] XCode 빌드 에러 해결방법React Native 2021. 12. 8. 00:02
- .xcworkspace 폴더의 이름이 각 디바이스의 프로젝트 명과 일치하지 않을 수 있음. (Podfile 확인)
- XCode 버전 업그레이드가 필요할 수 있음.
- 아래 코드로 간단히 해결될 수도 있음. 이 때, build 폴더가 있다면 삭제가 선행되어야 함. 더 깔끔하게 하고자 한다면 node_modules 까지 지우고 새로 install 한 다음 진행하면 됨. → 추가적으로 삭제해도 되는 파일 : Pods , Podfile.lock
cd ios pod deintegrate pod update // or pod install - Target -> Build Settings -> Architetures -> Build Active Architecture Only 를 변경해주어야 할 수 있음.
- Cocoapods 문제일 경우 pod 캐시 지우는 방법으로 해결될 수도 있음.
rm -rf ~/Library/Caches/CocoaPods rm -rf Pods rm -rf ~/Library/Developer/Xcode/DerivedData/* pod deintegrate pod cache clean --all pod setup - podfile 을 수정해주어야 할 수도 있음. 수정 후 pod update , pod install 하면 됨.
- 기존 파일
use_flipper! post_install do |installer| flipper_post_install(installer) end - 변경 파일
이걸로도 안된다면 use_flipper! 부분을 과감하게 주석처리 하는 것도 하나의 방법.use_flipper!({ 'Flipper-Folly' => '2.3.0' }) # update this part post_install do |installer| flipper_post_install(installer) end
- 기존 파일
'React Native' 카테고리의 다른 글
[RN] 커스텀 폰트 사용하는 법 (0) 2021.12.08 [RN] 데이터 초기화 방법 (0) 2021.12.08 [RN] Warning 표시 제거하는 법 (0) 2021.12.07 [RN] React Native Docs #13 : Guides IOS (0) 2021.12.07 [RN] React Native Docs #12 : Guides Android (0) 2021.12.07