본문 바로가기

안드로이드 스튜디오 범블비 업데이트 후 CocoaPods not installed or not in valid state 오류 해결

ironwhale 2022. 2. 1.

안드로이드 스튜디오 범블비(android studio version bumblebee) 업데이트 후 이것저것 문제가 많네요.

 

디바이스 매니져가 안열리고 이번에는 iOS 빌드 시

CocoaPods not installed or not in valid state.

오류가 발생합니다. 

 

진짜 이 문제를 해결하려고 안드로이드 스튜디오와 플러터 CocoaPods를 얼마나 삭제 재설치를 했는지 모르겠네요 

결국 스택오버플로우에 가장 최근 질문 순을 검색해서 해결하였습니다. 

지금까지의 CocoaPods not installed or not in valid state 은 CocoaPods의 자체의 문제 해결 방법이라면 

제가 발견한 해결방법은 안드로이드 스튜디오 범블비 자체의 문제인거 같습니다.

 

참고로 디바이스 매니져가 안열리는 문제는 글 아래쪽에 링크 걸어두겠습니다. 


CocoaPods not installed or not in valid state. 발생하다 

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.

CocoaPods not installed or not in valid state.
Error launching application on iPhone 13 Pro Max.

아무래도 CocoaPods라는 것이 설치가 안되서 발생한 문제로 보여 일단 오류를 구글에 검색해보니 여러가지 해결 방법들이 있었습니다. 

결국 CocoaPods 삭제 후 재설치하라는 이야기 인데 이 방법으로는 해결이 되지 않았습니다. 

 

flutter doctor를 해봐도 오류는 없고 iOS로 빌드하면 오류가 나고 정말 환장할 노릇이었습니다. 


스택오버플로우에서 해결방법을 찾다

스택오버플로우 답변을 보니 독에 있는 아이콘을 클릭해서 안드로이드 스튜디오를 실행하는 과정에서 몬가 문제가 있는거 같습니다. 

 

일단 안드로이드 스튜디오를 완전히 종료한뒤 터미널에 아래 명령어를 통해 안드로이드 스튜디오를 실행해 보세요 

마법처럼 오류가 사라지는 현상을 보실수 있습니다. 

open /Applications/Android\ Studio.app

 

하지만 위 해결방법은 매번 터미널에 해당 명령어를 입력해야 되는 번거로움이 있습니다. 

 

이 역시  해결방법이 제시 되어 있습니다.

터미널에 chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv

입력하면 모든 문제가 해결 됩니다. 

 

이번 해결 방법은 안드로이드 스튜디오 범블비 업데이트 후 갑자기 해당 오류가 발생하는 분들에 한에 해결 가능한 방법입니다. 

 

 

 

 

 

Flutter build iOS error CocoaPods not installed. Skipping pod install

Iam using Mac and upgraded to Android studio "Bumblebee", only in Mac when I try to do: Build -> Flutter -> Build iOS it shows this warning: Warning: CocoaPods not installed. Skippi...

stackoverflow.com

 

 

문제해결-안드로이드 스튜디오 범블비 업데이트 후 디바이스 매니저 실행안됨 해결

Why Device Manager don't open? Why Device Manager don't open? Guys I'm working on the flutter project and after I updated the version of the android studio when I click on the device manager to open..

jh-industry.tistory.com

댓글