Adding third party package dependencies in iOS

Hi,
I am trying to create a plugin which uses the third party Swift package dependencies and it is building successfully, however, when the same plugin is used inside the capacitor app it shows an error like “Missing Required Modules”.
I tried adding the same dependency files to the capacitor app too, however, the issue remains the same.
And I even tried adding s.dependency ‘[package_dependency_name]’ in plugin podspec file and when I install the pods, it gives me an error like “Unable to find a specification for [package_dependency_name]”
Can anyone suggest or help me resolve this issue.