pro*_*ror 16 xcode ios visual-studio-code flutter flutter-run
这是flutter run
.
这是控制台输出的图像版本flutter doctor -v
。
运行 flutter run 给我:
'''下载 ios 工具... 7.8s 下载 ios-profile 工具... 5.5s 下载 ios-release 工具... 34.0s 在调试模式下在 iPhone SE(第二代)上启动 lib/main.dart...
警告:缺少构建名称 (CFBundleShortVersionString)。警告:缺少内部版本号 (CFBundleVersion)。需要采取的行动:在提交到 App Store 之前,您必须在 pubspec.yaml 文件版本字段中设置构建名称和编号。运行 pod install... 9.3s 运行 Xcode 构建...
Xcode 构建完成。89.9s 无法构建 iOS 应用程序 Xcode 构建的错误输出:?** 构建失败 **
Xcode 的输出:../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:26: 错误:未找到类型“DiagnosticableMixin”。带有 DiagnosticableMixin 的 PictureStream 类 { ^^^^^^^^^^^^^^^^^^^ ../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/图片流.dart:192:44:错误:未找到类型“DiagnosticableMixin”。抽象类 PictureStreamCompleter 与 DiagnosticableMixin { ^^^^^^^^^^^^^^^^^^^ ../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src /picture_stream.dart:88:7: 错误:类型“DiagnosticableMixin”不能混入。带有DiagnosticableMixin 的PictureStream 类{ ^ ../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4 /lib/src/picture_stream.dart:192:16: 错误:不能混合类型“DiagnosticableMixin”。抽象类 PictureStreamCompleter with DiagnosticableMixin { ^ ../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:167:11: 错误:超类没有名为“debugFillProperties”的方法'。super.debugFillProperties(properties); ^^^^^^^^^^^^^^^^^^^ ../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:171 :30: 错误:未为类“PictureStreamCompleter”定义方法“toStringShort”。-“PictureStreamCompleter”来自“package:flutter_svg/src/picture_stream.dart”(“../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart”) . 尝试将名称更正为现有方法的名称,或定义名为“toStringShort”的方法。ifPresent: _completer?.toStringShort(), ^^^^^^^^^^^^^ ../. pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:266:11:错误:超类没有名为“debugFillProperties”的方法。super.debugFillProperties(描述); ^^^^^^^^^^^^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Run Code Online (Sandbox Code Playgroud)
无法为模拟器构建应用程序。在 iPhone SE(第 2 代)上启动应用程序时出错。'''
运行 flutter doctor -v 给我:
''' 正在下载 android-arm-profile/darwin-x64 工具... 1.1s 正在下载 android-arm-release/darwin-x64 工具... 0.9s 正在下载 android-arm64-profile/darwin-x64 工具... 1.7 s 下载 android-arm64-release/darwin-x64 工具... 1.0s 下载 android-x64-profile/darwin-x64 工具... 1.3s 下载 android-x64-release/darwin-x64 工具... 1.0s [ ?] Flutter (Channel master, 1.20.0-1.0.pre.132, on Mac OS X 10.15.2 19C57, locale en-US) • Flutter version 1.20.0-1.0.pre.132 at /Users/lesleychang/flutter • 框架修订版 5995661777(6 小时前),2020-06-19 16:15:58 -0700 • 引擎修订版 676cd566f7 • Dart 版本 2.9.0(构建 2.9.0-17.0.dev 7e72c9ae7e)
[?] Android 工具链 - 为 Android 设备开发?无法找到 Android SDK。从以下位置安装 Android Studio:https : //developer.android.com/studio/index.html 首次启动时,它将帮助您安装 Android SDK 组件。(或访问https://flutter.dev/docs/get-started/install/macos#android-setup了解详细说明)。如果 Android SDK 已安装到自定义位置,请将 ANDROID_SDK_ROOT 设置为该位置。您可能还想将其添加到 PATH 环境变量中。
[?] Xcode - 为 iOS 和 macOS 开发 (Xcode 11.5) • Xcode 位于 /Applications/Xcode.app/Contents/Developer • Xcode 11.5,构建版本 11E608c • CocoaPods 版本 1.9.3
[!] Android Studio(未安装) • 未找到Android Studio;从https://developer.android.com/studio/index.html下载 (或访问https://flutter.dev/docs/get-started/install/macos#android-setup获取详细说明)。
[?] 连接的设备(1 个可用)
• iPhone SE(第二代) • 7305F6FC-57BD-4A00-A55D-FC6741E759C4 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-5(模拟器)
!医生发现了 2 类问题。'''
我根本无法在我的 iOS 模拟器上运行我的 Flutter 应用程序,我查看了类似的帖子也无济于事。关于该怎么做的任何指示?或者我可以尝试从任何其他社区获得帮助?谢谢!
小智 20
由于https://github.com/flutter/flutter/pull/58635所做的重大更改,您可以将 flutter_svg 升级到 0.18.0 或降级 flutter。
归档时间: |
|
查看次数: |
7819 次 |
最近记录: |