提问者:小点点

Flutter构建iOS失败


我从VSCode构建了一个新的flutter项目,并在iOS模拟器(iPhone 11)上运行,它显示:

Launching lib/main.dart on iPhone 11 in debug mode...
Xcode build done.                                           11.2s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    error: unable to spawn process (No such file or directory) (in target 'Runner' from project 'Runner')
    error: unable to spawn process (No such file or directory) (in target 'Runner' from project 'Runner')
    note: Using new build system
    note: Planning build
    note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11.
Exited (sigterm)

共1个答案

匿名用户

按照以下步骤操作。

>

  • 打开Flutter项目文件夹,在我的例子中-helloflutter找到iOS文件夹并打开该文件夹

    Xcode打开后转到登录

    取消选中自动管理从登录签名的复选框

    5.保存更改,关闭Xcode,然后再次运行Flutter代码。