Flutter构建iOS失败 [英] Flutter build iOS FAILED

查看:154
本文介绍了Flutter构建iOS失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I build a new flutter project from VSCode, and run on iOS simulator (iphone 11), it shows:


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 文件夹并打开该文件夹

  1. Open your Flutter project folder, in my case - helloflutter find the iOS folder and open that folder

在"iOS"内部在Xcode IDE中打开 Rinner.xcworkspace 文件夹

Inside the "iOS" folder open Rinner.xcworkspace in your Xcode IDE

打开Xcode后,请转到登录并登录功能(允许序列从下面的图片访问登录和功能)

Once Xcode open go to Signin & Capabilities (fallow the sequence to reach Signin & Capabilities from below image)

取消选中复选框,该复选框登录并自动管理签名功能

Uncheck checkbox that Automatically manage signing from Signin & Capabilities

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

5. Save the changes, close Xcode, and run the Flutter code once again.

这篇关于Flutter构建iOS失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆