Handle SPM cache in Codemagic CI/CD

Open
#1,852 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Sembauke is already working on this.

Since Oct 12, 2026.

  • #1853 by @Sembauke — closed without merging
  • #1854 by @Sembauke — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
flutter, swift
Domain
ci-cd, mobile

Research direction

The payload does not name the Codemagic configuration file, so start by locating the pipeline definition for the iOS build in the repository and find where Cocoapods paths and caching are declared. Add caching for the Swift Package Manager dependency directories and remove the Cocoapods steps. Done means the iOS pipeline runs on Codemagic with the SPM cache restored on a second run and no Cocoapods references remain.

Written by the indexing model from the issue text.

Description

type: bug

In a recent Flutter update we migrated to Swift Package Manager (SPM) and got rid of Cocoapods as it was going to be deprecated. Now the Codemagic pipelines need to be updated to cache the packages downloaded with SPM and remove any Cocoapods related paths.

The failing/timing out pipelines could be a result of Codemagic not caching it themselves.

Dominant language
Dart
Stars
583
Forks
202
Avg merge
4d 1h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from freeCodeCamp/mobile

All issues in freeCodeCamp/mobile

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.