【发布时间】:2018-04-09 13:22:31
【问题描述】:
我按照 Flutter 网站上的说明进行操作。 Flutter Doctor 警告如下。我的问题我不知道如何克服这个错误、警告等。
有什么帮助吗?
/Users/niyazitoros/development/flutter/flutter/bin/flutter --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.2.3, on Mac OS X 10.13.4 17E199, locale tr-TR)
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 9.3)
✗ Missing Xcode dependency: Python module "six".
Install via 'pip install six' or 'sudo easy_install six'.
✗ CocoaPods installed but not initialized.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To initialize CocoaPods, run:
pod setup
once to finalize CocoaPods' installation.
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2018.1)
[!] Connected devices
! No devices available
! Doctor found issues in 3 categories.
Process finished with exit code 0
在纠正颤振路径后,医生给了我这个警告。
/Users/niyazitoros/development/flutter/bin/flutter --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.2.3, on Mac OS X 10.13.4 17E199, locale tr-TR)
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 9.3)
✗ Missing Xcode dependency: Python module "six".
Install via 'pip install six' or 'sudo easy_install six'.
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Community Edition (version 2018.1)
[!] Connected devices
! No devices available
! Doctor found issues in 3 categories.
Process finished with exit code 0
【问题讨论】:
-
Android 需要安装 Android Studio 和 iOS XCode
-
你真的尝试过按照颤振医生所说的去做吗?要接受android许可,安装六个并初始化cocoapods?
-
大约一个月前我确实安装了完整的 xCode 和完整的 Android Studio。问题是颤振文件夹在下载文件夹中。我更正了路径,现在正在处理 1 个警告。无法安装六个。
-
user-MBP:~ user$ easy_install -U 六 正在搜索六 正在阅读 pypi.python.org/simple/six 找不到“六”的索引页(可能拼写错误?) 扫描所有包的索引(这可能需要一会儿)阅读pypi.python.org/simple No local packages or working download links found for 6 error: Could not find proper distribution for Requirement.parse('six')
-
全新安装 macOS high Sierra 后,一切都变得完美。我按照 macOS 安装中的步骤和它现在的工作。
标签: configuration flutter macos-high-sierra