Skip to content

feat: add Swift Package Manager support for iOS (#184) - #186

Open
MartinCardozo-SDK wants to merge 2 commits into
developmentfrom
feature/gh-184-add-swift-package-manager-support
Open

MartinCardozo-SDK wants to merge 2 commits into
developmentfrom
feature/gh-184-add-swift-package-manager-support

Conversation

@MartinCardozo-SDK

@MartinCardozo-SDK MartinCardozo-SDK commented Sep 17, 2026

Copy link
Copy Markdown

Flutter 3.44 makes Swift Package Manager the default package manager for Flutter apps, so plugins without a Package.swift risk build failures.

  • Move ios/Classes/*.swift to ios/splitio_ios/Sources/splitio_ios/ and add Package.swift, depending on the Split iOS SDK via SwiftPM (github.com/splitio/ios-client, >= 3.6.0 < 3.7.0) to mirror the podspec.
  • Delete the unreferenced Objective-C bridge SplitioPlugin.h/.m. The plugin registers through pluginClass SwiftSplitioPlugin, and SwiftPM does not allow mixed-language targets.
  • Update the podspec source_files to the new layout so CocoaPods keeps working, correct its stale version, and drop the obsolete i386 EXCLUDED_ARCHS workaround.
  • Raise the minimum iOS version to 12, matching the example apps and the support matrix already documented in the README.

Flutter 3.44 makes Swift Package Manager the default package manager for
Flutter apps, so plugins without a Package.swift risk build failures.

- Move ios/Classes/*.swift to ios/splitio_ios/Sources/splitio_ios/ and add
  Package.swift, depending on the Split iOS SDK via SwiftPM
  (github.com/splitio/ios-client, >= 3.6.0 < 3.7.0) to mirror the podspec.
- Delete the unreferenced Objective-C bridge SplitioPlugin.h/.m. The plugin
  registers through pluginClass SwiftSplitioPlugin, and SwiftPM does not
  allow mixed-language targets.
- Update the podspec source_files to the new layout so CocoaPods keeps
  working, correct its stale version, and drop the obsolete i386
  EXCLUDED_ARCHS workaround.
- Raise the minimum iOS version to 12, matching the example apps and the
  support matrix already documented in the README.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

AI-Session-Id: 8888253a-4939-42e3-b127-1a3f91bebf49
AI-Tool: claude-code
AI-Model: unknown
@MartinCardozo-SDK MartinCardozo-SDK self-assigned this Sep 17, 2026
@MartinCardozo-SDK
MartinCardozo-SDK requested a review from a team as a code owner September 17, 2026 20: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