我正在尝试使用Codemagic for iOS编译我的应用程序。在本地,我的环境是:
[√] Flutter (Channel stable, v1.9.1+hotfix.6, on Microsoft Windows [Version 10.0.18363.657], locale 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'.
我将不胜感激任何反馈,谢谢!