下载的可执行文件无法在主机上执行-Macos Monterey 12.4,硅芯片

发布于 2025-02-10 05:32:20 字数 1482 浏览 2 评论 0原文

我最近试图运行我的flutter应用程序。但是,当我尝试这样做时,我会收到以下错误:

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application launch for 'com.[redacted]' did not return a valid pid 
nor a launch error.
No such process
Command: /usr/bin/arch -arm64e xcrun simctl launch AA375D1F-5CFC-4D1B-B367- 
4CB98488D7DA 
com.[redacted] --enable-dart-profiling
--enable-checked-mode --verify-entry-points --observatory-port=0
Error launching application on iPhone 13.

为了解决此问题,我跑了flutter Doctor,在哪里遇到以下错误:

      See https://github.com/flutter/flutter/issues/6207 for more information

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2022.1.2)
[✓] VS Code (version 1.67.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

我已经尝试卸载并重新安装扑来,但我仍然会得到相同的错误。我真的很困惑这种情况,我真的很感谢您的帮助。先感谢您!

I was recently trying to run my flutter app. However, when I tried to do so, I got the following error:

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application launch for 'com.[redacted]' did not return a valid pid 
nor a launch error.
No such process
Command: /usr/bin/arch -arm64e xcrun simctl launch AA375D1F-5CFC-4D1B-B367- 
4CB98488D7DA 
com.[redacted] --enable-dart-profiling
--enable-checked-mode --verify-entry-points --observatory-port=0
Error launching application on iPhone 13.

To try and fix this, I ran flutter doctor, where I got the following errors:

      See https://github.com/flutter/flutter/issues/6207 for more information

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2022.1.2)
[✓] VS Code (version 1.67.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

I have already tried uninstalling and reinstalling flutter, and I am still getting the same error. I am genuinely confused as to why this happening, and I would really appreciate some help. Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

他夏了夏天 2025-02-17 05:32:20

运行此命令之后:$ sudo softwareupdate-安装 - rosetta -agree to-license
这个问题似乎已经解决了。我跑步医生,这就是输出:(

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2022.1.2)
[✓] VS Code (version 1.67.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

忽略Android问题 - 我故意没有安装它们)。

After running this command: $ sudo softwareupdate --install-rosetta --agree-to-license,
the problem appears to have been fixed. I ran flutter doctor, and this was the output:

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2022.1.2)
[✓] VS Code (version 1.67.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

(Ignore the android issues- I intentionally did not install them).

挽清梦 2025-02-17 05:32:20

我在Mac M1上遇到了同样的错误。
看起来,罗塞塔没有正确安装。
使用Rosetta使用。

sudo softwareupdate --install-rosetta --agree-to-license

I was getting the same error on my mac M1.
looks like,rosetta was not installed properly.
Install rosetta using.

sudo softwareupdate --install-rosetta --agree-to-license
一个人的旅程 2025-02-17 05:32:20

就我而言,我有一个M1、2020,并且我会遇到“下载可执行文件”

1-升级到最新版本的flutter,

flutter upgrade

然后删除bin缓存文件

rm -r ~/Documents/SDK/flutter/bin/cache

运行“ Flutter Doctor”,您应该全部设置

In my case, I have an M1, 2020 and I get the error "Downloaded executables cannot"

1- Upgrade to the latest version of flutter with

flutter upgrade

2- Then remove the bin cache files

rm -r ~/Documents/SDK/flutter/bin/cache

Run "flutter doctor" and you should be all set

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文