Skip to content

fix(ci): cache Swift packages in Codemagic - #1853

Closed
Sembauke wants to merge 2 commits into
mainfrom
codex/fix-codemagic-spm-cache
Closed

Sembauke wants to merge 2 commits into
mainfrom
codex/fix-codemagic-spm-cache

Conversation

@Sembauke

@Sembauke Sembauke commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Both Codemagic iOS workflows still cache CocoaPods after the migration to Swift Package Manager. Replace that cache with the shared SwiftPM download cache and mobile-app/build/ios/SourcePackages, where Flutter 3.44.3 directs Xcode's package checkouts. Remove cocoapods: default from both workflows and correct the Dart dependency cache to $HOME/.pub-cache, as documented by Codemagic.

Validation: the updated YAML passes the official Codemagic JSON schema, all workflow scripts pass bash -n, and git diff --check passes. iOS builds and actual cache restoration need verification in Codemagic; a successful initial build must populate the cache before a subsequent run can demonstrate reuse.

References: Codemagic SPM caching, Flutter 3.44.3 package checkout path.

Checklist:

  • I have read and followed the contribution guidelines.
  • I have read and followed the how to open a pull request guide.
  • My pull request targets the main branch of the repo.
  • I have tested these changes locally on my machine. (Configuration validation passed; macOS/iOS execution is pending CI.)

Closes #1852

@Sembauke Sembauke closed this Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle SPM cache in Codemagic CI/CD

1 participant