Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70936

Using a SPM dependency inside a capacitor plugin but the overall app is using Cocoapods

$
0
0

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?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 70936

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>