mac (m1) 에서 react-native 시작하기 - Trouble shooting1

hyehye^-^·2022년 3월 14일
0

[react-native]

목록 보기
1/1

pod install Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports.

ios 실행전에는 pods package를 설치해줘야한다.

$ cd SRC_ROOT/ios/
$ pod install

그런데 아래와 같은 오류가 발생!!

구글링을 해본 결과 한가지 방법을 찾았다.
Ruby FFI 라이브러리 업데이트 후 재설치 하면 된다고 한다.

ffi를 설치할 때 아키텍쳐를 x86_64 로 지정하여 설치
(M1은 arm 기반이라 arch 명령을 수행해보면 arm64 라고 나옴)

$ sudo arch -x86_64 gem install ffi 

pod install 명령을 사용하면 아키텍쳐가 arm64 로 인식되기 때문에 여전히 아키텍쳐 관련한 호환성 문제가 발생한다.
대신 명령 앞에 아키텍쳐를 지정해서 실행하도록 한다.

arch -x86_64 pod install



짠!! pod install 이 정상적으로 수행되었다!!!

profile
안녕 코더? 혼자보려고 끄적이는 공간이에요.

0개의 댓글