Flutter 应用程序未在 m2 处理器上运行的 iOS 模拟器上运行

问题描述 投票:0回答:1

我的 Flutter 应用程序在 M1 处理器上完美运行。现在,我已经升级到了新的M2处理器。安装完所有内容后,当我在 iOS 模拟器上运行该应用程序时,出现以下错误:

Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running Xcode build...
Xcode build done.                                           22.0s
Exception: Unable to launch uk.co.example.client on 01D40B66-5A9B-464E-882E-4EB9B762168F:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Simulator device returned an error for the requested operation.
No such process
Underlying error (domain=NSPOSIXErrorDomain, code=3):
    Application launch for 'uk.co.example.client' did not return a valid pid nor a launch error.
    No such process
  Command: /usr/bin/arch -arm64e xcrun simctl launch 01D40B66-5A9B-464E-882E-4EB9B762168F uk.co.financemagic.client --enable-dart-profiling --start-paused --enable-checked-mode --verify-entry-points
Error launching application on iPhone 14 Pro.

我尝试清理flutter项目。从 xcode 中清理构建文件夹。正在删除 Pod 文件 PodFile.lock。似乎什么都不起作用。任何帮助将不胜感激。

ios flutter ios-simulator
1个回答
0
投票

您是否仔细检查过以确保您的构建配置设置为调试而不是发布?我没有注意到我的在更换笔记本电脑后更改为发布

© www.soinside.com 2019 - 2024. All rights reserved.