m1 pod install 에러

박은정·2023년 8월 24일
0

리액트네이티브

목록 보기
21/24

m1맥에서 리액트네이티브의 ios 디렉터리에서 pod install 명령어를 실행했을때 아래와 같은 에러가 발생했다.

LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): 
tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), 
'/System/Volumes/Preboot/Cryptexes/OS/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (no such file), 
'/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture 
(have 'x86_64', need 'arm64')) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle

너무 길어서 LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009) 이라고만 검색했는데 해당 블로그를 찾았다.

여기서 나온 터미널앱을 로제타로 실행하는 첫번째 해결방법은 해결되지 않았는데, 두번째 방법 중에 arch -x86_64 pod install 명령어를 입력하니까 SDK가 정상적으로 설치된 것을 확인했다.

ios 스위프트 수업도 들어야겠다...

profile
새로운 것을 도전하고 노력한다

0개의 댓글