[flutter] pod install 오류해결하기 (undefined method 'map' for nil:NilClass)
오류1
the sandbox is not in sync with the Podfile.lick. Run 'pod install' or update your cocoaPods Installation.
메시지를 보아하니 cocoapods을 업데이트 해야합니다.
Podfile.lock을 삭제해보기도하고 pod을 삭제하고 재설치도 해보았지만 계속 achive가 만들어지지를 않습니다 ㅠ_ㅠ
오류2
undefined method 'map' for nil:NilClass
M1에서 pod install을 하게되면 이런 오류를 발견하게 됩니다.
우선 ffi설치를 하고, ios/폴더에서 다시 재설치를 하는 과정입니다.
(프로젝트명 폴더에서)
(sudo) arch -x86_64 gem install ffi
(ios폴더 들어가서 예를들자면, 지금 프로젝트명에 포커스가 가있다면 cd ios 명령어로)
arch -x86_64 pod install
sudo pod update
위 명령어가안된다면,
arch -x86_64 pod install --repo-update
flutter clean
프로젝트실행
참고사이트
Error Regarding undefined method `map' for nil:NilClass for Flutter App / CocoaPod Error
I'm having an error regarding my Flutter application. When I run the "flutter run" script in terminal, I'm getting the following error from Cocoapods: "Error output from CocoaPods:
stackoverflow.com