問(wèn)題 1:
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.0-rc2)
? ? ? Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
? ? ? To update using sdkmanager, run:
? ? ? ? /Users/yanjing/Library/Android/sdk/tools/bin/sdkmanager "platforms;android-28" "build-tools;28.0.3"
? ? ? or visit https://flutter.io/setup/#android-setup for detailed instructions.
? ? ?Android licenses not accepted.? To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
? ? ? libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
? ? ? ? brew update
? ? ? ? brew install --HEAD usbmuxd
? ? ? ? brew link usbmuxd
? ? ? ? brew install --HEAD libimobiledevice
? ? ? ? brew install ideviceinstaller
? ? ? ios-deploy not installed. To install:
? ? ? ? brew install ios-deploy
[!] Android Studio (version 3.1)
? ? ? Flutter plugin not installed; this adds Flutter specific functionality.
? ? ? Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.30.1)
? ? ? Flutter extension not installed; install from
? ? ? https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[?] Connected device (1 available)
解決 :
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
問(wèn)題2
安裝 ,brew install --HEAD usbmuxd?
./configure: line 16735: syntax error near unexpected token `libplist,'
./configure: line 16735: `PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION)'
在?https://github.com/flutter/flutter/issues/24716 中找到解決方法:
I solved it running
brew doctor
And resolving this warning:
Warning: You have unlinked kegs in your Cellar
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
? pkg-config
? libtool
? libksba
? python@2
? libyaml
? libgpg-error
依次執(zhí)行:
? brew link ?pkg-config ?
? 。。。。?
在執(zhí)行 剩下的命令:
?brew install --HEAD usbmuxd
? brew unlink usbmuxd
? brew link usbmuxd
? brew install --HEAD libimobiledevice
? brew install ideviceinstaller
運(yùn)行 ?flutter doctor ??
結(jié)果:
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.0-rc2)
? ? ? Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
? ? ? To update using sdkmanager, run:
? ? ? ? /Users/yanjing/Library/Android/sdk/tools/bin/sdkmanager "platforms;android-28" "build-tools;28.0.3"
? ? ? or visit https://flutter.io/setup/#android-setup for detailed instructions.
? ? ? Android licenses not accepted.? To resolve this, run: flutter doctor --android-licenses
[?] iOS toolchain - develop for iOS devices (Xcode 10.1)
[!] Android Studio (version 3.1)
? ? ? Flutter plugin not installed; this adds Flutter specific functionality.
? ? ? Dart plugin not installed; this adds Dart specific functionality.
[?] VS Code (version 1.30.1)
[?] Connected device (4 available)