-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected resultsWatch the build use the codemagic.yaml file specified Flutter / Xcode / Cocoapods versions Actual resultsSee the build fail because of a mismatch of Dart version specified in the pubspec.yaml and the Dart version from the formerly-specified-through-the-CodeMagic-Workflow-Editor Flutter version. The codemagic.yaml flutter version is not used. Instead, the Flutter version that has been specified in the CodeMagic Workflow Editor is used. NOTE: In the build ID case listed below, the codemagic.yaml file calls out a Flutter version 3.24.4. The CodeMagic Workflow Editor (if I switched back to it), shows a Flutter version 3.24.3, and my pubspec.yaml calls out the specific Dart SDK 3.5.4 (belonging to Flutter version 3.24.4) Build id (optional)67bf389159a14e4ca8866ecc |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @wolfe719.
It's attempting to run the
and the correct version 3.5.3 will be used. |
Beta Was this translation helpful? Give feedback.
Hey @wolfe719.
From the logs of the build ID, the flutter version 3.24.3 is being used. The reason for the build failure was also explained in the failed step:
It's attempting to run the
flutter packages pub get
command with Dart version 3.5.3 but because version 3.5.4 was explicitly stated in your pubspec.yaml file, hence the failure. You can use a range in your pubspec.yaml file instead e.g:and th…