Skip to content

Migrate example iOS app to Swift Package Manager#511

Merged
rickdijk merged 3 commits into
developfrom
chore/example-ios-spm-remove-cocoapods
Jul 20, 2026
Merged

Migrate example iOS app to Swift Package Manager#511
rickdijk merged 3 commits into
developfrom
chore/example-ios-spm-remove-cocoapods

Conversation

@rickdijk

Copy link
Copy Markdown
Contributor

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Chore / build tooling update for the example iOS app.

⤵️ What is the current behavior?

On Flutter 3.44, building the example for iOS warns that all plugins are Swift Packages but the project still has CocoaPods integration. Flutter treats the example Podfile as non-standard (it includes use_modular_headers!), so CocoaPods is not removed automatically.

🆕 What is the new behavior (if this is a feature change)?

  • Removes CocoaPods integration (Podfile, Pods xcconfig includes, pod deintegrate)
  • Keeps Flutter’s Swift Package Manager wiring (FlutterGeneratedPluginSwiftPackage, prepare pre-action)
  • Updates the example iOS project for Flutter 3.44 (AppDelegate / scene manifest / related project settings)
  • Ignores .build/ and .swiftpm/ in the example .gitignore

💥 Does this PR introduce a breaking change?

No. Changes are limited to the example iOS project.

🐛 Recommendations for testing

  • From flutter_cache_manager/example, run fvm flutter build ios --no-codesign
  • Confirm the build succeeds without the CocoaPods / Swift Package Manager dual-integration warning

📝 Links to relevant issues/docs

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current develop

Made with Cursor

Rick van Dijk and others added 2 commits July 20, 2026 09:09
Remove CocoaPods integration now that all plugins support SPM, and keep Flutter's generated Swift package wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@rickdijk
rickdijk force-pushed the chore/example-ios-spm-remove-cocoapods branch from 2436224 to 3cca888 Compare July 20, 2026 15:09
@rickdijk
rickdijk merged commit 71d7252 into develop Jul 20, 2026
10 checks passed
@rickdijk
rickdijk deleted the chore/example-ios-spm-remove-cocoapods branch July 20, 2026 17:12
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.

2 participants