首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >flutter doctor : idevice_id返回错误

flutter doctor : idevice_id返回错误
EN

Stack Overflow用户
提问于 2018-10-17 10:51:49
回答 2查看 2.7K关注 0票数 5

我有一个question.When,我重新启动了我的电脑,“颤动医生”是可以的。我可以成功地运行我的应用程序。但是一旦我运行我的应用程序,命令"flutter doctor“就是错误的。如果我重新启动我的电脑,“颤动医生”就会恢复正常。有没有人遇到了同样的问题,如何解决异常: idevice_id返回错误:

代码语言:javascript
复制
#0      IMobileDevice.getInfoForDevice (package:flutter_tools/src/ios/mac.dart:122:9)
#1      IOSDevice.getAttachedDevices (package:flutter_tools/src/ios/devices.dart:152:53)
#2      IOSDevices.pollingGetDevices (package:flutter_tools/src/ios/devices.dart:112:57)
#3      PollingDeviceDiscovery.devices (package:flutter_tools/src/device.dart:163:52)
#4      DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:91:46)
#5      DeviceValidator.validate (package:flutter_tools/src/doctor.dart:607:54)
#6      Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:105:52)
#7      Doctor.diagnose (package:flutter_tools/src/doctor.dart:162:41)
#8      _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#9      Doctor.diagnose (package:flutter_tools/src/doctor.dart:152:24)
#10     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:29:39)
#11     _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#12     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:28:42)
#13     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:372:18)
#14     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#15     _rootRunUnary (dart:async/zone.dart:1132:38)
#16     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#18     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#19     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#20     Future._complete (dart:async/future_impl.dart:476:7)
#21     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#22     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#23     _rootRun (dart:async/zone.dart:1124:13)
#24     _CustomZone.run (dart:async/zone.dart:1021:19)
#25     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#28     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#29     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)"
EN

回答 2

Stack Overflow用户

发布于 2019-03-10 07:26:58

我可以通过取消设备配对,然后运行

代码语言:javascript
复制
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
票数 3
EN

Stack Overflow用户

发布于 2018-11-02 14:56:24

这是一个will be fixed soonupstream bug in libusbmuxd。还有一个正在考虑包含在Flutter本身中的proposed workaround

与此同时,GitHub用户@mattijsf mentioned提供了几种解决此问题的方法:

打开Xcode > Unpair device.

  • If > Devices & Simulators >右键单击设备>Unpair device.

  • If您正在使用的物理Window设备如果您不想从Xcode取消配对,则必须使用USB线将其连接或禁用该设备上的Wi-Fi。
  • 将取消与Xcode配对的任何不需要的iOS设备,然后:打开Xcode>Window>Devices & Simulators>右键单击设备>USB线。

代码语言:javascript
复制
# Detaching USB & Disabling WIFI on device (wait 10 - 20 seconds)

$ idevice_id -l
[empty]

# Enabling WIFI on device (wait 10 - 20 seconds)

$ idevice_id -l
4a8e882c613--37cc1ac48
$ ideviceinfo -u 4a8e882c613-37cc1ac48
No device found with udid 4a8e882c613--37cc1ac48, is it plugged in?

# Attaching device with USB

$ idevice_id -l
4a8e882c613--37cc1ac48
4a8e882c613--37cc1ac48
$ ideviceinfo -u 4a8e882c613--37cc1ac48
ActivationState: Activated
....etc

# Now it works
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52846630

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档