🎸/React Native

[ React Native -삽질 기록 ] react-native run-ios 오류 해결 ( CompileC , load 에러 , Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. , pod install, pod update , M1 빌드 오류)

컴공생 C 2021. 2. 8. 14:29
반응형

진짜 목,금 부터 오늘(월)까지 하루종일 리액트 네이티브 run-ios 에러가 끊임없이 떠서 

Xcode 다시 깔고.. 깔았던 cocoapods 삭제했다가 npm 삭제했다가 sudo gem install ffi 등등 이걸 몇번을 한건지..🥲

한 3시간 탈주했다가 안되면 디스크 포맷할 생각으로 이게 안되면.. 답은 포맷이다..하고 했는데 드디어 됐다ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ다섯줄은 더 울어도 부족하지만 미래의 나 || 누군가를 위해.... 눈물닦고 정리하기 😇

나한테 뜬 에러는 다음과 같다.

Xcode 12.4로 업뎃한 이후로 발생한 문제라고 한다( 근데 난 그전에 잘 되었는데...?)

참고로 나는 


(node:46965) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

(Use `node --trace-warnings ...` to show where the warning was created)

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening AA.xcworkspace. Run CLI with --verbose flag for more details.


스크롤 크기 미쳤다..ㅎㅎ........xcode에서 보면 약 500개쯤 됨ㅋㅋㅋㅋㅋㅋㅋ

<마지막 부분>


objc[46976]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1ed1fb8f0) and ?? (0x123aa42b8). One of the two will be used. Which one is undefined.

objc[46976]: Class AMSupportURLSession is implemented in both ?? (0x1ed1fb940) and ?? (0x123aa4308). One of the two will be used. Which one is undefined.

** BUILD FAILED **

 

The following build commands failed:

CompileC /Users/kahyun/Library/Developer/Xcode/DerivedData/AA-abiqgocrdgsajfaznnhtcnexgyjg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/arm64/FlipperRSocketResponder.o /Users/kahyun/Desktop/AA/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)


 

해결방법

 

프로젝트 경로>ios>podfile 열기

1) flipper가 필요하지 않은 프로젝트

위의 podfile 로 들어가서 이 부분을 삭제‼️

use_flipper!
post_install do |installer|
  flipper_post_install(installer)
end

2) flipper 가 필요한 프로젝트

위의 podfile 로 들어가서 이 부분을 찾아서 아래와 같이 수정

 use_flipper!({ 'Flipper-Folly' => '2.3.0' }) # update this part
 post_install do |installer|
   flipper_post_install(installer)
 end

 

그리고 다음 코드 실행

cd 프로젝트 경로/ios 
pod update //또는
pod install 

이 pod install 이 안되는 경우는

터미널 (경로는 상관없는듯)

sudo gem install cocoapod
sudo gem install ffi

cd 프로젝트경로/ios  //경로 이동
pod install

이걸 실행하면 설치가 된다...

 

결과화면

몰라 난 flipper뭔지 모르고,,아직 그런거 쓸일 없으니 삭제했다. ㅅㄱ

반응형