[Question]: SPM support
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
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.
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.
Capacitor will make SPM the default package manager from v8 and onward. Because of this, hopefully OneSignal will support it soon as well.
Also looking forward to SPM support here. This is the last plugin I use that isn't compatible with SPM.