【发布时间】:2020-07-30 05:04:41
【问题描述】:
我一直在尝试解决这个问题:
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
1 warning generated.
/Users/ME/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:28: Error: Type 'DiagnosticableMixin' not found.
class DatePickerTheme with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
/Users/ME/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DatePickerTheme with DiagnosticableMixin {
^
/Users/ME/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_form_builder-4.0.0-alpha.8/lib/src/fields/form_builder_chips_input.dart:95:17: Error: No named parameter with the name 'allowChipEditing'.
allowChipEditing: allowChipEditing,
^^^^^^^^^^^^^^^^
/Users/ME/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_chips_input-1.9.0-dev.1/lib/src/chips_input.dart:13:3: Context: Found this candidate, but the arguments don't match.
ChipsInput({
^^^^^^^^^^
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
Could not build the application for the simulator.
我正在使用flutter_form_builder-4.0.0-alpha.8
这是我的flutter doctor -v:
[✓] Flutter (Channel dev, 1.21.0-1.0.pre, on Mac OS X 10.15.6 19G73, locale en-US)
• Flutter version 1.21.0-1.0.pre at /Users/ME/development/flutter
• Framework revision f25bd9c55c (2 weeks ago), 2020-07-14 20:26:01 -0400
• Engine revision 99c2b3a245
• Dart version 2.9.0 (build 2.9.0-21.0.dev 20bf2fcf56)
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Applications/Android/sdk
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = /Applications/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.0.2-dev.4
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.47.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.8.0
[✓] Connected device (4 available)
• iPhone 11 Pro Max (mobile) • ios •
com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web) • chrome • web-javascript • Google Chrome
• No issues found!
我已经完成了:
-
我能在 Flutter 中做的一切:
- Did
flutter clean,重建, - 删除 Pod,然后执行
flutter pub get和pod setup和pod install - 有
flutter upgrade
- Did
-
删除并重新安装flutter、cocoapods、ruby和dart
-
在 master 和 dev 之间更改颤振通道并重复第 1 点。哪个不起作用
-
还尝试使用
pub.dev源和pub.flutter-io.cn。两者都给出相同的结果。
现在在这个问题上浪费了 2 天。所以我怀疑某些包或代码问题可能存在问题?
感谢任何帮助!谢谢
【问题讨论】:
-
看看这个github issue,很多人用不同的方式解决了类似的问题。 github.com/aws-amplify/aws-sdk-ios/issues/1045
标签: ios xcode flutter formbuilder