gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 08:14:11 26 4
gpt4 key购买 nike

我最近尝试运行我的 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

我已经尝试卸载并重新安装 flutter,但我仍然遇到同样的错误。我真的很困惑为什么会这样,我真的很感激一些帮助。提前致谢!

最佳答案

运行此命令后: $ sudo softwareupdate --install-rosetta --agree-to-license,问题似乎已经解决。我运行了 flutter doctor,这是输出:

[✗] 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 问题 - 我故意没有安装它们)。

关于ios - 下载的可执行文件无法在主机上执行 - MacOS Monterey 12.4,硅芯片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72736407/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com