OneSignal-Cordova-SDK icon indicating copy to clipboard operation
OneSignal-Cordova-SDK copied to clipboard

[Question]: SPM support

Open leonluc-dev opened this issue 6 months ago • 3 comments

How can we help?

Recently CocoaPods has entered maintenance mode and recommend people migrate to Swift Package Manager. Capacitor has support for SPM as well these days.

I'm trying to migrate to SPM as well for my capacitor project, but the onesignal plugin is preventing me from doing so.

[fatal] [Error: ENOENT: no such file or directory, open '/Users/builduser/Desktop/SPMTestApp/ios/capacitor-cordova-ios-plugins/sources/OnesignalCordovaPlugin/Package.swift'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/builduser/Desktop/SPMTestApp/ios/capacitor-cordova-ios-plugins/sources/OnesignalCordovaPlugin/Package.swift'
}

Are there any plans to support SPM packages for this plugin?

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

leonluc-dev avatar Jul 04 '25 11:07 leonluc-dev

Hi @leonluc-dev, thanks for reaching out. At this time, it is not on our immediate roadmap to support SPM for this plugin. However, it is a feature we do want to address.

nan-li avatar Jul 11 '25 18:07 nan-li

Alright. Thanks for the information.

Since Cocoapods has entered maintenance mode recently and will enter read-only mode late next year, we are trying to move our projects from cocoapods to SPM before that. So hopefully it will be addressed in the near future.

leonluc-dev avatar Jul 25 '25 15:07 leonluc-dev

Capacitor will make SPM the default package manager from v8 and onward. Because of this, hopefully OneSignal will support it soon as well.

StrunSoftware avatar Sep 26 '25 13:09 StrunSoftware

Also looking forward to SPM support here. This is the last plugin I use that isn't compatible with SPM.

jake-moritz-trifecta avatar Dec 12 '25 09:12 jake-moritz-trifecta