Repository navigation
fix(ios): declare FlutterFramework dependency in Swift package - #240
roberthartman wants to merge 1 commit into
Conversation
Match the Flutter plugin template so SwiftPM resolves Flutter for the plugin target instead of relying on Xcode's shared build graph. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
FlutterFrameworkpackage dependency inios/flutter_nfc_kit/Package.swift, matching the template Flutter generates for Swift Package Manager plugins.import Flutteris already present ondevelop, so the Swift source is unchanged.Why
The manifest declares no dependencies, so the plugin target doesn't declare Flutter. Builds currently pass only because Xcode shares Flutter across the whole build graph. Issue #233 was closed on the assumption that SPM was already fully supported; this makes the manifest correct.
Testing
flutter config --enable-swift-package-manager, no CocoaPods, using this plugin as a path dependency:flutter build ios --simulator --debug --no-codesignsucceeds.🤖 Generated with Claude Code
Summary by CodeRabbit