How to fix Command PhaseScriptExecution failed with a nonzero exit code on flutter run in macOS?
I am working on a flutter app. I recently shifted to macOS and since then haven't been able to run the app. Other apps are running fine so I think the error is in within the code of this app. And m...
stackoverflow.com
에러메세지
Command PhaseScriptExecution failed with a nonzero exit code note: Using new build system note: Planning note: Build preparation complete note: Building targets in dependency order
갑자기 IOS시뮬레이터가 먹통이되었다.
IOS폴더에 가보면 Podfile 과 Podfile.lock
이 있는데 두 파일에 설정된 버전이 달라서 그렇다고 한다.
flutter clean
flutter pub get
flutter pub upgrade
cd iOS
pod install
하면 누가범인인지알수있다.
해결방법
- IOS/podfile.lock 삭제
- 터미널에서 cd ios, pod install
- flutter clean
- flutter run
'Flutter' 카테고리의 다른 글
| [Flutter / Error] 버전 코드는 이미 사용되었습니다. 다른 버전 코드를 사용해 보세요. (0) | 2022.04.14 |
|---|---|
| Custom painter 로 bar chart 와 pie chart 그리기 (0) | 2022.03.31 |