Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
錯(cuò)誤解決
一锉走、問題
Failed to build iOS app
Error output from Xcode build:
?
** BUILD FAILED **
Xcode's output:
?
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
二滨彻、解決方法
(1)清理Xcode緩存
command + 空格 打開搜索框藕届,然后輸入下方地址
~/Library/Developer/Xcode/DerivedData
打開對應(yīng)文件后,刪除內(nèi)部全部內(nèi)容即可亭饵。
(2)終端執(zhí)行flutter clean
flutter clean
(3)終端執(zhí)行 flutter run
flutter run
等待執(zhí)行結(jié)束即可