m1칩 맥에서 pod Firebase 사용시 오류

Posted by Albert 406Day 11Hour 36Min 13Sec ago [2023-04-08]

현재 macbook air M1칩을 사용중인 나에게 Firebase 관련 오류가 발생했다.

[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":

  In Podfile:

    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 2.5.0, which depends on

      Firebase/Firestore (= 8.5.0)


None of your spec sources contain a spec satisfying the dependency: `Firebase/Firestore (= 8.5.0)`.


You have either:

 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.

(버전 관련 오류인건 알겠다,,,)

이런 오류가 발생했는데 stackoverflow에 검색해보니 채택된 답변에서 ios 버전을 높여주라고 한다. (PodFile 에 platform :ios, '11.0' 추가)

결과는 실패. 

 

알고보니 m1 칩에서만 나타나는 문제였다.

 

Podfile.lock, Pods 제거 후 

1 .arch -x86_64 sudo gem install cocoapods -n /usr/local/bin

2. sudo gem install cocoapods -n /usr/local/bin

3. sudo arch -x86_64 gem install ffi

4. arch -x86_64 pod install --repo-update

 


원글주소: https://th-biglight.tistory.com/24

 





LIST

Copyright © 2014 visionboy.me All Right Reserved.