[M1 MacBook]Flutter CocoaPods Dependency 관련..

0

원인 모를 Firebase에러...

Pods folder 삭제 flutter clean, pub get pod install 등을 다 해봐도 해결 되지 않았다.

 arch -x86_64 pod install --repo-update

를 사용하여 pod update를 해준다.

해당 글을 참고했다.
https://stackoverflow.com/questions/45796986/cocoapods-subspec-issue-none-of-your-spec-sources-contain-a-spec-satisfying-the/67803629#67803629

M1이 출시된지 1년이 되었지만 아직 미스테리한 문제들이 가끔 나오는것 같다....


추가1

cocoapods ffi m1 이라고 검색 하면 나오는 내용이다.
https://stackoverflow.com/questions/64901180/running-cocoapods-on-apple-silicon-m1
이 글을 참고하면 ruby ffi와 m1에서의 문제는 오래전부터 있었다.

사실 이 문제가 정확히 어떤 원인으로 인해 파악하진 못했지만 ruby가 arm을 지원하지 않는것같다고 추측해본다...

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set.
In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to
Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig or include the Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig in your build configuration (Flutter/Release.xcconfig).

빌드 설정 오류인데

#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"

를 Flutter/Release.xcconfig 에 추가한다.

추가2

Brew와 Cocoapods가 MacOS Monterey버전에 맞추어 새로 나왔다. 버전이 달라서 Cocoapods가 제대로 작동하지 못했다.

모두 업데이트를 해주고 나니 문제없이 빌드 되었다. 개발자에게 있어 역시 OS 업데이트는 신중해야하는 부분이다.

추가3

m1 pod install 안될 경우

arch -x86_64 pod install
https://github.com/CocoaPods/CocoaPods/issues/10220#issuecomment-730963835

0개의 댓글