Flutter

[Flutter] MacOS에서 빌드시 cocoapods 에러 문제

시커먼수르 2022. 3. 11. 10:41

MacOS 의  Android Studio 에서 아이폰 단말을 연결하고, 빌드를 시작했더니 아래와 같은 에러가 발생했다.

Warning: CocoaPods not installed. Skipping pod install.
  CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
  Without CocoaPods, plugins will not work on iOS or macOS.
  For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

Exception: CocoaPods not installed or not in valid state.

 

 

 

구글링을 하다 보니 여러가지 유사한 이슈가 있어서 하나씩 해보았다.

 

1. 안드로이드 스튜디오 캐시 클리어

 

캐시 정리하고, 스튜디오 재시작해보라는 방법이 있었다.

하지만 이걸로는 해결되지 않음

 

2. 터미널 창에서 flutter run 실행

이건 동작함...

cocoapod install이 같이 들어가져서 그런지 잘된다. 

하지만 이후에 다시 스튜디오 내에서 빌드하면 동일한 현상 발생함.

 

 

3. 터미널을 통해서 스튜디오 앱을 연다.

open /Applications/Android\ Studio.app

 

이경우는 과연...?

 

잘된다. ㅋㅋㅋ

뭐지... 

 

알수없는 Mac의 세계~~