728x90
pod install 오류 해결방법
[IMPORTANT] Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports. |
맥북 에어 M1으로 앱 개발 실습을 진행하는 중에 cocoapod으로 Alamofire와 Chart를 설치 시 오류가 발생했다.
강의와는 달리 오류가 나는 걸 보고 직감적으로 M1의 환경문제인걸 알아채고 곧바로 구글링에 들어갔다..
다음 내용은 구글링을 통해 찾은 해결 방법이다.
Ruby FFI 라이브러리 업데이트 후 재설치 |
ffi를 설치할 때 아키텍처를 x86_64로 지정하여 설치하는 방식 (M1은 arm 기반이라 arch 명령을 수행 시 arm64라고 나옴)
% sudo arch -x86_64 gem install ffi
Building native extensions. This could take a while...
Successfully installed ffi-1.15.5
Parsing documentation for ffi-1.15.5
Done installing documentation for ffi after 3 seconds
1 gem installed
% arch -x86_64 pod install
Analyzing dependencies
Downloading dependencies
Installing Alamofire (5.5.0)
Installing Charts (3.6.0)
Generating Pods project
Integrating client project
해결 완료..!
728x90