본문 바로가기
Flutter & Dart

m1, m2 맥에서 Pod install 오류로 Flutter iOS 빌드 안 될 때

by 2Plus 2023. 1. 28.

Photo by Elisa Ventur on Unsplash

 

Flutter 프로젝트로 iOS 앱을 빌드할 때, m1, m2 맥 기기에서 오류가 발생하면 다음 방식으로 해결할 수 있다.

Flutter 프로젝트 루트 경로에서 다음처럼 입력하면 된다.

 

sudo arch -x86_64 gem install ffi
cd ios
rm -rf build
rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/.pub-cache/hosted/pub.dartlang.org
pod cache clean --all
flutter clean
flutter pub get
arch -x86_64 pod repo update
arch -x86_64 pod install

 

매번 필요할 때마다 까먹어서 다시 찾아봐서 메모용..

 

 

 

 

반응형

댓글