[!] Oh no, an error occurred. cocoapods install 실패할때

quokka·2021년 8월 26일
0

iOS

목록 보기
6/27
post-custom-banner

pod install을 해줬는데 밑과같은 에러가 나면서 인스톨이 안되더라고요..

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.12.2%2Flib%2Fffi_c.bundle%2C+9%29%3A+Symbol+not+found%3A+_ffi_type_double%0A++Referenced+from%3A+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.12.2%2Flib%2Fffi_c.bundle%0A++Expected+in%3A+flat+namespace%0A+in+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.12.2%2Flib%2Fffi_c.bundle+-+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.12.2%2Flib%2Fffi_c.bundle&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Searching for inspections failed: undefined method `map' for nil:NilClass

코코아팟 인스톨이 잘되다가 갑자기 안돼서 찾아보니까 애플 실리콘칩이랑 코코아팟의 호환성 문제라고하네요. 저는 현재 apple m1사용하고 있는데 밑과 같이 해주니까 해결되었습니다.

해결법
1) sudo arch -x86_64 gem install ffi
2) arch -x86_64 pod install

출처 : https://github.com/CocoaPods/CocoaPods/issues/9890

profile
iOS를 공부하는 개발자입니다~ㅎㅎ
post-custom-banner

0개의 댓글