【发布时间】:2020-06-10 16:07:35
【问题描述】:
我正在尝试使用 Codemagic 为 iOS 编译我的应用程序。在本地,我的环境是:
[√] Flutter (Channel stable, v1.9.1+hotfix.6, on Microsoft Windows [版本 10.0.18363.657],语言环境 en-US)
[√] Android 工具链 - 为 Android 设备开发(Android SDK 版本 28.0.3)
[√]Android Studio(3.5版)
编译到 Android 应用程序没有问题。 但是,当我切换到 Codemagic 时,我将配置设置为:
Flutter 1.9.1+hotfix.6
Xcode 11.1
我报告了以下错误:
Compiler message:
lib/app/ui/widgets/color_theme_picker_widget.dart:2:8: Error: Error when reading '../programs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_colorpicker-0.3.2/lib/block_picker.dart': No such file or directory
import 'package:flutter_colorpicker/block_picker.dart';
^
lib/app/ui/widgets/color_theme_picker_widget.dart:35:28: Error: Method not found: 'BlockPicker'.
child: BlockPicker(
^^^^^^^^^^^
lib/app/ui/widgets/color_theme_picker_widget.dart:35:28: Error: The method 'BlockPicker' isn't defined for the class 'ColorThemePicker'.
- 'ColorThemePicker' is from 'package:biorhythms/app/ui/widgets/color_theme_picker_widget.dart' ('lib/app/ui/widgets/color_theme_picker_widget.dart').
Try correcting the name to the name of an existing method, or defining a method named 'BlockPicker'.
如果有任何反馈,我将不胜感激, 谢谢!
【问题讨论】: