New plugins now include a Package.swift
file where you can add swift packages as dependencies, but it will only work if users are using the Capacitor’s SPM template.
If you want to use CocoaPods, I found this package that allows to specify SPM dependencies inside the podspec file, but users will have to install that package for it to work.