Skip to content

feat: Flutter SPM support for iOS plugin#804

Open
NandanPrabhu wants to merge 6 commits intomainfrom
flutter-pod-to-spm
Open

feat: Flutter SPM support for iOS plugin#804
NandanPrabhu wants to merge 6 commits intomainfrom
flutter-pod-to-spm

Conversation

@NandanPrabhu
Copy link
Copy Markdown
Contributor

@NandanPrabhu NandanPrabhu commented Apr 2, 2026

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

📋 Changes

PR consists of SPM support iOS plugin addressing a github issue #793
Flutter doc on migrating cocoapods to Swift package manager https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors#change-to-relative-path

📎 References

🎯 Testing

@NandanPrabhu NandanPrabhu changed the title cocoapods to spm conversion feat: Flutter SPM support for iOS plugin Apr 2, 2026
@NandanPrabhu NandanPrabhu marked this pull request as ready for review April 8, 2026 14:08
@NandanPrabhu NandanPrabhu requested a review from a team as a code owner April 8, 2026 14:08
NandanPrabhu and others added 4 commits April 16, 2026 04:49
flutter config --enable-swift-package-manager must run after Flutter
is installed and before flutter pub get so that SPM-based dependencies
(Auth0.swift resolved via Package.swift) are properly set up when
building and running native iOS/macOS unit tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The FlutterGeneratedPluginSwiftPackage (created during flutter pub get)
picks up the iOS deployment target from the Xcode toolchain. When Xcode
was configured after pub get, the generated Package.swift defaulted to
iOS 13.0 instead of reading the project's IPHONEOS_DEPLOYMENT_TARGET
of 14.0, causing:

  error: The package product 'auth0-flutter' requires minimum platform
  version 14.0 for the iOS platform, but this target supports 13.0

Fix: move "Setup Xcode" and "Save Xcode version" steps before
"Enable Swift Package Manager" and "flutter pub get".
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.

1 participant