Skip to content

feat(ios): Swift Package Manager, native SDK off CocoaPods trunk - #23

Merged
Xyzcancer merged 9 commits into
masterfrom
swift-pm-migration
Oct 26, 2026
Merged

Xyzcancer merged 9 commits into
masterfrom
swift-pm-migration

Conversation

@Xyzcancer

Copy link
Copy Markdown
Contributor

CocoaPods trunk is read-only from 2 December 2026; the native iOS SDK now ships through Swift Package Manager.

  • The plugin is a Swift package as well: ios/rees46_sdk/Package.swift takes the native SDK from its repository tag. The sources move to ios/rees46_sdk/Sources/rees46_sdk, and the podspec builds the same files.
  • Native SDK 3.36.1, which keeps the device id when an app moves from CocoaPods to Swift Package Manager.
  • CI builds the iOS example through Swift Package Manager and through CocoaPods.
  • README: iOS setup for both.

Host impact: apps that build plugins through CocoaPods (Swift Package Manager off, or Flutter before 3.44) add pod 'REES46', :git => 'https://github.com/rees46/ios-sdk.git', :tag => 'v3.36.1' to ios/Podfile, since 3.36.1 is not on trunk.

The sources move to ios/rees46_sdk/Sources/rees46_sdk, where Flutter expects a Swift package, and ios/rees46_sdk/Package.swift takes the native SDK from its repository tag. The podspec builds the same files for apps with Swift Package Manager support off.
3.36.1 keeps the device id when an app moves from CocoaPods to Swift Package Manager, and loads the search widget's strings from the package bundle. It is not on CocoaPods trunk.
A CocoaPods build needs the native pod from its repository now, a line the example's Podfile does not keep; the lock is what the default Swift Package Manager build leaves.
@Xyzcancer
Xyzcancer merged commit 84664db into master Oct 26, 2026
4 of 5 checks passed
@Xyzcancer
Xyzcancer deleted the swift-pm-migration branch October 26, 2026 15:44
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