在 iPhone Flutter 上启动应用程序时出错

Fai*_*mal 7 xcode ios visual-studio-code flutter

我无法在 VSCode 上测试我的 flutter 应用程序,该应用程序在虚拟盒子上的 catalina 上运行。

\n

从 VSCode 启动应用程序后,我只是收到单行错误Error launching application on Najam\xe2\x80\x99s iPhone.,然后应用程序在设备中打开,但随后与 VSCode 断开连接

\n
Launching lib/main.dart on Najam\xe2\x80\x99s iPhone in debug mode...\nAutomatically signing iOS for device deployment using specified development team in Xcode project: H5PHS46J86\nRunning pod install...                 277.5s\nRunning Xcode build...                                                  \n \xe2\x94\x94\xe2\x94\x80Compiling, linking and signing...   114.5s\nXcode build done.                      346.8s\nInstalling and launching...            59.8s\nError launching application on Najam\xe2\x80\x99s iPhone.\n
Run Code Online (Sandbox Code Playgroud)\n

我尝试过的

\n

正如此处建议的https://github.com/flutter/flutter/issues/69632#issuecomment-803646337,我尝试了下面的解决方案,但它对我不起作用

\n
\n
    \n
  • platform to 10.0Podfile 内的设置(平台:ios,\'10.0\')
  • \n
  • flutter clean进行,pod cache clean --all和的组合pod install
  • \n
\n
\n

我也尝试过这个解决方案/sf/answers/4526289421/。但它也不起作用。

\n
\n
    \n
  • flutter clean pod 缓存清理 --all

    \n
  • \n
  • rm -rf ios/Flutter/Flutter.framework

    \n
  • \n
  • 扑扑酒吧得到

    \n
  • \n
  • 吊舱安装

    \n
  • \n
  • 扑腾跑

    \n
  • \n
\n
\n

我应该怎么办?

\n

在此输入图像描述

\n

Agr*_*nsh 1

启动时间很长。您使用什么类型的机器进行构建?VSCode 调试可能只是超时。尝试直接从 xcode 运行,a) 查看它是否保持连接,b) 查看是否报告任何进一步的错误