Build input file cannot be found: ... 에러 해결

Hong·2022년 4월 17일
0

Xcode 버전 업데이트 이후 Build input file cannot be found: ...에러 발생

해결 시도

첫번째 시도

$ watchman watch-del-all
$ rm -rf node_modules
$ npm i
$ npx pod-install

결과: 실패

두번째 시도

$ cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../
$ cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh

결과: 실패
참고: https://intrepidgeeks.com/tutorial/xcode10-build-input-file-double-conversion-failed-the-following-error-occurred-when-starting-the-reactnative-project-after-upgrading-to-xcode10

세번째 시도

생각해 보니 에러 내용은 필요가 없어 삭제한 라이브러리이다.
해결 방법은

프로젝트 Root 폴더 -> ios -> Profile -> 
에러 난 라이브러리 pod '<Library name>' :path => '../node_modules/<Library name>'

해당 라인 삭제 후

npx pod-install
xcode build 또는 npx react-native run-ios

해결 완료!

profile
코딩 배우기

0개의 댓글