Add Swift Package Manager support for iOS and macOS - #651
Open
shivanshu877 wants to merge 1 commit into
Open
Conversation
Migrates both Apple plugins to Swift Package Manager while keeping CocoaPods working: - iOS: move the Swift sources under ios/flutter_tts/Sources/flutter_tts, remove the Objective-C registration shim (FlutterTtsPlugin.h/.m) and rename SwiftFlutterTtsPlugin to FlutterTtsPlugin so the pubspec pluginClass is unchanged, matching the existing macOS implementation. - macOS: move the Swift source under macos/flutter_tts/Sources/flutter_tts. - Add ios/ and macos/ Package.swift (each depends on FlutterFramework). - Update both podspecs' source_files to the new locations and drop the obsolete iOS public_header_files entry. Verified: example builds for the iOS simulator and macOS under both Swift Package Manager and CocoaPods.
|
The following plugins do not support Swift Package Manager for ios:
I am also getting the same issues please accept this and release the new version |
SureshSelam
reviewed
Aug 29, 2026
SureshSelam
left a comment
There was a problem hiding this comment.
This changes must be accept
I am getting error
The following plugins do not support Swift Package Manager for ios:
- flutter_tts
SureshSelam
reviewed
Aug 31, 2026
SureshSelam
left a comment
There was a problem hiding this comment.
Please release this commit and approve
SPM supprot required
SureshSelam
approved these changes
Aug 31, 2026
|
Can you please merge this ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates both Apple plugins to Swift Package Manager while keeping CocoaPods working, so apps can build
flutter_ttsunder either build system.Changes:
ios/flutter_tts/Sources/flutter_tts, remove the Objective-C registration shim (FlutterTtsPlugin.h/.m) and renameSwiftFlutterTtsPlugintoFlutterTtsPlugin, so the pubspecpluginClassis unchanged and iOS now matches the existing macOS implementation.macos/flutter_tts/Sources/flutter_tts.ios/andmacos/Package.swift(each depends onFlutterFramework).source_filesand drop the obsolete iOSpublic_header_filesentry.Testing:
flutter build ios --simulatorandflutter build macoson the example both succeed with Swift Package Manager enabled, and still succeed with CocoaPods (SPM disabled).