Error Message
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.
문제 상황
Flutter 개발 도중, Flutter version을 upgrade하기로 해서, (아마) 최신 버전인 3.3.8로 SDK를 upgrade.
개발 환경은 VSCode와 Xcode의 아이폰 시뮬레이터(iPhone 13 pro)를 사용 중.
SDK 업그레이드 이후 flutter pub get
과, IOS 폴더 내에서 pod install
을 실행하고,
이후 아이폰 시뮬레이터를 켜고 시뮬레이터 상에서 앱을 디버깅하려 하였으나 앱이 켜지지 않음.
해결 1
main.dart에서 오른쪽 위 삼각형(Start Debug) 버튼으로 여태 디버깅했는데,
vscode 하단 터미널 쪽에서 flutter run
으로 실행하니 해결되었다.
참고로 flutter run
은 기본적으로 디버그 모드로 실행되는 명령어이기 때문에, 오류 메시지 등도 다 출력이 되니 안심하고 사용하자.