본문 바로가기
프로그래밍/React Native

[React Native] Ignoring ffi-1.15.0 because its extensions are not built

by CaffeLatte 2023. 9. 7.

오랜만에 React Native를 최신버전(0.72)으로 설치 후 실행해보았다

두둥! 넌 누구냐...

 

프로젝트 생성하고 실행한 거 밖에 없는데 warning과 error들

warning: Unable to read contents of XCFileList
error: Unable to load contents of file list

등등...

 

계속 모른체하고 옛날 지식으로 pod install을 추가로 실행해보았더니,

Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
...
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0
Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0

 

흠;; 역시 만만한 상대가 아니군!

...이 아니라 경고와 에러를 무시한 결과 -_ㅠ

 

일단,

gem which cocoapods

실행해보니

Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0

이런 문구를 띄운다

 

gem 관련 문제인 거 같아서 찾아보니

sudo gem pristine ffi 이런 방법이 있었다

여기서 gem pristine이 궁금해 찾아보니

 

Command Reference - RubyGems Guides

What each gem command does, and how to use it. This reference was automatically generated from RubyGems version 3.4.19. gem build Build a gem from a gemspec Usage gem build GEMSPEC_FILE [options] Options --platform PLATFORM - Specify the platform of gem to

guides.rubygems.org

설치된 gem들을 복구해준다는 내용.

 

암튼

sudo gem pristine ffi

실행 후 다시 확인

gem which cocoapods

아까와 같은 Ignoring... 뭐시기 문구는 더 이상 뜨지 않는다. (진짜 복구를 했구나?!)

 

프로젝트 삭제하고 다시 생성 후 실행하니

iOS, Android 모두잘 실행된다!

 

아참, Metro에서 이제

이런 식으로 선택할 수 있다.

React Native도 좀 발전했군! (근데 언제쯤 1.xx대 버전이 나오려나.. 궁금)

 

 

 

끝.

댓글