下载的可执行文件无法在主机上执行-Macos Monterey 12.4,硅芯片
我最近试图运行我的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
运行此命令之后:
$ sudo softwareupdate-安装 - rosetta -agree to-license
,这个问题似乎已经解决了。我跑步医生,这就是输出:(
忽略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:
(Ignore the android issues- I intentionally did not install them).
我在Mac M1上遇到了同样的错误。
看起来,罗塞塔没有正确安装。
使用Rosetta使用。
I was getting the same error on my mac M1.
looks like,rosetta was not installed properly.
Install rosetta using.
就我而言,我有一个M1、2020,并且我会遇到“下载可执行文件”
1-升级到最新版本的flutter,
然后删除bin缓存文件
运行“ 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
2- Then remove the bin cache files
Run "flutter doctor" and you should be all set