美文网首页Flutter
Could not build the application

Could not build the application

作者: 张鹏飞_6b83 | 来源:发表于2020-08-11 10:56 被阅读0次

    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

    相关文章

      网友评论

        本文标题:Could not build the application

        本文链接:https://www.haomeiwen.com/subject/ezpedktx.html