집에서 git에 올렸두었던 토이 프로젝트를
시간날 때마다 보려고 회사 맥에 받았다
cocoapods을 1.13.0 으로 버전업 후
pod install을 실행했지만 실패
스크롤을 쭉 올려보니
Oh no, an error occurred. 가 찍혀있었다
Googling...
구글링해보니 실리콘 맥으로 넘어오면서 생기는
이슈들 중 하나인 듯 했다
우선, 해결 방법
(선택)sudo arch -x86_64 gem install ffi
(필수)arch -x86_64 pod install
참고1
https://stackoverflow.com/a/67312715/13973840
Load error while trying to install cocoapods in MacBook Air running OSX 11.2.2 with Apple M1 chip
On running pod install getting an error like this. [!] Oh no, an error occurred while Analyzing dependencies Error LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 0x00...
stackoverflow.com
참고2
https://github.com/CocoaPods/CocoaPods/issues/5233#issuecomment-881562907
pod install: [!] Oh no, an error occurred. · Issue #5233 · CocoaPods/CocoaPods
Report [!] Oh no, an error occurred. What did you do? Run pod install What did you expected to happen? Install all pod dependencies correctly. What happened instead? Stack CocoaPods : 0.39.0 Ruby :...
github.com
더 찾아보니 'arch -x86_64 pod install' 한 줄로도 해결이 되는 듯 했다
그럼 ffi는 뭔가하고 찾아보니,
동적으로 연결된 네이티브 라이브러리를
프로그래밍적으로 로드하고
그 안에 있는 바인딩 함수를 불러오는 데
유용한 것이라고 했다
그러고 터미널을 다시 보다가
Search for existing GitHub issues similar to yours 에 나와있는 gitHub url 중간에
'gem/ffi-1.15.0/lib/ffi_c.bundle' 이게 있어서
설치를 한건가 라는 생각으로 생각의 흐름을 멈췄다
어쨌든 pod install 성공
'이상 > iOS' 카테고리의 다른 글
[iOS] Easy to Auto Layout = SnapKit (ft.유의점) (0) | 2023.11.08 |
---|---|
[iOS] ‘Unable to install 앱이름’ 에러 처리 (0) | 2023.08.01 |
[iOS] APNs 푸시 키 발급 (0) | 2023.07.28 |
[iOS] 애플 개발자 프로그램 등록하기 (0) | 2023.07.25 |
[iOS] UIScrollView(Horizontal) 만들기 (+ SnapKit 사용법) (0) | 2021.05.24 |