Flutter 在真机上运行时报错
Posted
技术标签:
【中文标题】Flutter 在真机上运行时报错【英文标题】:Flutter get error when run on the real device 【发布时间】:2019-03-25 00:51:39 【问题描述】:我在真正的 iphone 设备上运行时使用颤振我得到以下错误 当我运行下面提到的命令时,我得到了同样的错误
brew 卸载 --ignore-dependencies libimobiledevice brew install --HEAD libimobiledevice brew install ideviceinstaller[!] ios toolchain - develop for iOS devices (Xcode 10.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.0, Build version 10A255 ✗ Verify that all connected devices have been paired with this computer in Xcode. If all devices have been paired, libimobiledevice and ideviceinstaller may require updating. To update, run: brew uninstall --ignore-dependencies libimobiledevice brew install --HEAD libimobiledevice brew install ideviceinstaller • ios-deploy 2.0.0 • CocoaPods version 1.5.3
【问题讨论】:
【参考方案1】:您可能遇到了https://github.com/flutter/flutter/issues/22595 中描述的问题。
您能否尝试确保您也更新了 usbmuxd?您应该能够运行:
brew update
brew uninstall libimobiledevice
brew uninstall usbmuxd
brew install --HEAD usbmuxd
brew install --HEAD libimobiledevice
【讨论】:
以上是关于Flutter 在真机上运行时报错的主要内容,如果未能解决你的问题,请参考以下文章