如何解决在 MacBook Air M1 上构建 iOS Flutter App 时出错
我是 Flutter 开发的新手。我在构建 IOS 应用程序时遇到了问题。 我有带 M1 芯片的 MacBook Air(Big Sur)
我的应用程序在 Android Simulator、Real Device、Web、iPhone Simualtor 上完美运行,但是当我尝试构建 iOS 应用程序时,出现以下错误:
[ +10 ms] Encountered error while building for device.
[ +2 ms]
#0 throwToolExit (package:Flutter_tools/src/base/common.dart:10:3)
#1 _BuildioSSubCommand.runcommand (package:Flutter_tools/src/commands/build_ios.dart:270:7)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:Flutter_tools/src/runner/Flutter_command.dart:1043:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:Flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runcommand (package:args/command_runner.dart:196:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runcommand.<anonymous closure> (package:Flutter_tools/src/runner/Flutter_command_runner.dart:284:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:Flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runcommand (package:Flutter_tools/src/runner/Flutter_command_runner.dart:232:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:Flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:Flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:Flutter_tools/executable.dart:91:3)
<asynchronous suspension>
有人可以帮我吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。