I am creating a capacitor plugin that relies on a third party dependency which is only distributed via Swift Package Manager and I keep on getting the module is not found.
Inside the capacitor plugin, I see there is a Package.swift.
In dependencies
, I have added
.package(name: "...", url: "...", from: "...")
In targets
, I have added
.product(name: "...", package: "...")
I have also tried manually adding this package through xcode (Package Dependencies → add my package) and this doesn’t work either.
I have built my capacitor app as a Cocopods project so I think this is the reason it’s not properly working. My question is, how can I get SPM to work for this specific plugin while all other plugins continue to use Cocoapods?