gpt4 book ai didi

flutter - "Could not connect to lockdownd"尝试运行 flutter 应用程序时

转载 作者:IT老高 更新时间:2023-10-28 12:40:08 30 4
gpt4 key购买 nike

我正在关注 Get Started教程。

我可以安装所有东西,flutter doctor返回所有复选标记但最后有一条消息:

idevice_id returned an error:
ERROR: Could not connect to lockdownd, error code -2

如果我尝试使用 flutter run 运行应用程序或尝试使用 flutter devices 列出设备,则会出现相同的消息。

本教程还指出:

Note: If the Run & Debug buttons are disabled, and no targets are listed, Flutter has not been able to discover any connected iOS or Android devices or simulators. You need to connect a device, or start a simulator, to proceed

我有两个设备列出了我的 Android 手机和一个 iPhone 模拟器。 RunDebug 按钮已启用!

如何使用 flutter 运行我的应用程序?它可以使用命令行或 IntelliJ IDE。

最佳答案

断开所有 iOS 设备,然后:

brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install --HEAD ideviceinstaller
brew link --overwrite ideviceinstaller
sudo rm -rf /var/db/lockdown/*

连接 iOS 设备,并在出现提示时选择“信任”,然后:

sudo chmod -R 777 /var/db/lockdown/

关于flutter - "Could not connect to lockdownd"尝试运行 flutter 应用程序时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47341623/

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