티스토리 뷰
M1 맥북을 초기화하고 cocoaPods을 설치하던 도중에 error를 발견했다.
podfile에 pod을 추가하고 pod install을 했는데
루비 어쩌구 저쩌구 ..
다음의 사이트들을 참고해서 해결했다.
Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000 - Ruby master - Ruby Is
ruby -v: ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
bugs.ruby-lang.org
CocoaPods Fails On Apple Silicon | Apple Developer Forums
Thank you, it's already almost 1 hour I'm trying to figured this out. Thanks
developer.apple.com
CocoaPods compatibility with Apple DTK (Apple Silicon) · Issue #9907 · CocoaPods/CocoaPods
Currently, libffi +Ruby v2.6.0 seems to have some issues with Apple's DTK. Multiple development tools, including Homebrew (ref Homebrew/brew#7857) seem to have issues working. Some have workaro...
github.com
애플 M1 환경에서 cocoapod 를 통한 pod install 실패 대응 방법
간만에 Swift 환경으로 넘어오니 묵혀있던 애플 M1 환경에서의 에러 공습이 시작되었습니다. cocoapod 설치까지는 잘 진행되었으나 필요한 의존성을 Podfile에 기술하고 설치하는 작업에서 문제가 생
ondemand.tistory.com
1. 터미널을 Rosetta로 실행하기
파인더에서 사용하는 터미널을 우클릭 - 정보 가져오기 - Rosetta를 사용하여 열기 체크
Rosetta로 실행해서 해결한 사람도 있던데 나는 해결하지 못하고 다음과 같은 에러가 발생했다.
ffi, arm64, need (x86_64) 어쩌구 ~
2. sudo gem install ffi
위의 에러 메시지에 ffi를 보고 github을 봤더니 ffi를 설치해보란다.
ffi를 설치하고 다시 pod install을 했더니 잘됨 ㅎ
arm64, x86_64 이런 거 보니까 m1칩 호환 문제였나 보다.
학부 시절에 vscode 세팅할 때도 이런 에러 많이 봤는데 또 만났다! ㅋㅋ
'iOS' 카테고리의 다른 글
iOS) CoreData 사용하기 (CRUD 구현) (0) | 2022.08.28 |
---|---|
iOS) UserDefaults 사용해 데이터 저장하기 (0) | 2022.08.25 |
iOS) CocoaPods 사용하기 (0) | 2022.08.23 |
iOS) UITabBarController Programmatically (0) | 2022.08.09 |
iOS) UIDatePicker - 2 / Count Down Timer 생성 (0) | 2022.07.26 |
- Total
- Today
- Yesterday
- 1406 에디터
- BOJ 1935
- ios
- BOJ 10799
- Algorithm
- 요시푸스
- BOJ 10866
- UICollectionView banner
- BOJ 17298
- github
- crud
- Custom Detent
- Sheet Height
- swift
- BOJ 10808
- NaverMaps
- Gradient View
- git
- sheetPresentationController
- CAGradientLayer
- Stack
- Card CollectionVIew
- BOJ 17413
- bottom sheet
- Carousel Effect
- autolayout
- UICollectionView Error
- BOJ 10809
- BOJ 10820
- 2023 회고
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |