React-Native 설정할 때 발생한 에러We ran "xcodebuild" command but it exited with error code 65.error Failed to build iOS project. To debug build logs further, consider building your app with Xcode.app, by opening version.xcodeproj.

조창연·2021년 12월 20일
0

We ran "xcodebuild" command but it exited with error code 65.We ran "xcodebuild" command but it exited with error code 65.

react-native run-ios 로 시뮬레이터를 실행하니 위와 같은 에러가 나왔다.
위 에러로 너무 많은 시간을 뺏겨 다음에는 그러지 않도록 기록하려고 한다.

우선적으로 위 에러가 아닌 fatal error: 'React/RCTBridgeDelegate.h' file not found
에러가 발생했을 때의 해결책은 ios 폴더로 들어가 pod install을 하니 해결되었다.

[react-native] react-native-vector-icons 오류가 발생했다.
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:

  • react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons")

    ...

    ios 같은 경우는 pod 에 React-native-vector-icons 를 추가해야 하는데
    원래는 react-native link react-native-vector-icons로 추가해줘야합니다.
    하지만 0.6 버전 이후부터는 autolink가 지원이 되어 unlink하라고 다시 연결을 풀라는 오류
    react-native unlink react-native-vector-icons 이 명령어를 실행해주면 오류가 해결 됩니다.

    또다른 react-native vector-icons 오류
    vector-icons/AntDesign을 통해 아이콘을 가져오는데 아래의 에러가 발생

    unrecognized font family anticon

    해당폰트가 제대로 설치되지 않아 발생하는 에러로
    Icon.loadFont(); 명령어를 실행함으로써 에러를 해결하였다.

profile
성장하고 싶은 개발자

0개의 댓글