Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration,
if needed' will be run during every build because it does not specify any outputs.
To address this issue, either add output dependencies to the script phase,
or configure it to run in every build by unchecking "Based on dependency analysis"
in the script phase. (in target 'hermes-engine' from project 'Pods')
› 1 error(s), and 3 warning(s)
CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.
🛠 오류 분석: RCTThirdPartyFabricComponentsProvider.h 파일을 찾을 수 없음
이 오류는 Fabric과 관련된 파일이 제대로 빌드되지 않았거나, React Native 패키지 설치가 올바르게 되지 않았을 때 발생할 수 있습니다.
특히 RCTThirdPartyFabricComponentsProvider.h 파일이 없다는 것은 React Native 패키지가 제대로 설치되지 않았거나, CocoaPods에서 정상적으로 빌드되지 않았을 가능성이 큽니다.
✅ 해결 방법 1: node_modules 및 Pods 재설치
1️⃣ 기존 패키지 및 캐시 삭제
rm -rf node_modules ios/Pods ios/Podfile.lock
2️⃣ 패키지 다시 설치
yarn install # 또는 npm install
3️⃣ CocoaPods 재설치
cd ios
pod install --verbose
cd ..
4️⃣ 빌드 다시 실행
npx react-native run-ios
'React Native' 카테고리의 다른 글
Error: EBUSY: resource busy or locked, rmdir (0) | 2025.02.27 |
---|---|
[RN] forwardRef를 사용하는 이유 (0) | 2025.02.21 |
[RN] 프로젝트 시작하기 (+svg 넣는법) (0) | 2025.02.13 |
[RN] FlatList 사용 시 스크롤 막고 싶을 때 (0) | 2025.02.06 |
[RN] 기초 개념 이해하기 (0) | 2025.01.20 |