zhanzengyu / FlutterNote

Easy to learn Flutter(Flutter 即学即用,Flutter 速成必备)
https://github.com/nesger/FlutterNote
Apache License 2.0
25 stars 0 forks source link

flutter doctor 提示 iOS toolchain 有些错误 #1

Open zhanzengyu opened 5 years ago

zhanzengyu commented 5 years ago

[!] iOS toolchain - develop for iOS devices (Xcode 10.1) ✗ 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 with Brew, run: 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 连接 iOS 手机后运行 flutter doctor 提示 ⣾Unhandled exception: Exception: ideviceinfo returned an error:

0 IMobileDevice.getInfoForDevice (package:flutter_tools/src/ios/mac.dart:141:9)

#1 IOSDevice.getAttachedDevices (package:flutter_tools/src/ios/devices.dart:156:55) #2 IOSDevices.pollingGetDevices (package:flutter_tools/src/ios/devices.dart:112:57) #3 PollingDeviceDiscovery.devices (package:flutter_tools/src/device.dart:166:52) #4 DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:94:46) #5 DeviceValidator.validate (package:flutter_tools/src/doctor.dart:687:54) #6 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:111:52) #7 Doctor.diagnose (package:flutter_tools/src/doctor.dart:184:41) #8 _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6) #9 Doctor.diagnose (package:flutter_tools/src/doctor.dart:174:24) #10 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:48:39) #11 _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6) #12 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:34:42) #13 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18) #14 _asyncThenWrapperHelper. (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. (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. (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)
zhanzengyu commented 5 years ago

解决方法是一次性执行未连接 iOS 设备时的命令,用;分隔。

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
titkov5 commented 5 years ago

@nesger thanks it's really help

rawabe4 commented 5 years ago

@nesger You are the best..thanks

zaai123 commented 5 years ago

@nesger Thanks a lot

voicubabiciu commented 5 years ago

@nesger Thanks a lot

ImproperMelon commented 5 years ago

太强了,ios-tools-chain这个折腾挺久的