Flutter

Could not build the application

2020-08-11  本文已影响0人  张鹏飞_6b83

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
错误解决

一、问题

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

打开对应文件后,删除内部全部内容即可。

(2)终端执行flutter clean

flutter clean

(3)终端执行 flutter run

flutter run

等待执行结束即可

image.png
上一篇 下一篇

猜你喜欢

热点阅读