我的 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。似乎什么都不起作用。任何帮助将不胜感激。