Skip to content

Commit

Permalink
CI: Try using fvm
Browse files Browse the repository at this point in the history
After ruling out ~everything else, the root cause of the build break appears to be due to default Xcode project configurations getting injected into pub packages.

The only significant difference between the first bad build and the last good build are the flutter paths: Codemagic has it at /Users/builder/programs/flutter_3_24_4 instead of /Users/builder/programs/flutter

Thus, using fvm may exercise a different configuration path on Codemagic and avoid this issue.
  • Loading branch information
jpohhhh committed Nov 2, 2024
1 parent 7c5a4b0 commit 3203acb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion codemagic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ definitions:
instance_type: windows_x2
max_build_duration: 60 # minutes.
env_versions: &env_versions
flutter: stable
flutter: fvm
xcode: latest
cocoapods: 1.15.2
java: 17
Expand Down
3 changes: 3 additions & 0 deletions example/.fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutterSdkVersion": "stable"
}
3 changes: 3 additions & 0 deletions example/.fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "stable"
}

0 comments on commit 3203acb

Please sign in to comment.