Adding Third Party SDK's to Capacitor Plugin

Hi,

I am trying to generate a Capacitor Plugin that includes a third party’s SDK. I have created the plugin and got it working fine on the app.

I have copied the files of the SDK into the PODs folder. Import into my Podfile and run pod install which successfully installed the SDK.

I then dragged the .framework file of the SDK into the Frameworks and Libraries on the Plugin.

When i then go to App to try and compile it onto the simulator it can’t find the module.

Can anyone give a workflow process that i could follow in order to add a third party library to a capacitor plugin or advised what i may be missing

Thanks and hopefully someone can shed some light on it for me

Capacitor plugins are CocoaPods libraries, so you have to add the framework in the podspec as you would do on a CocoaPods library.
In this case you need the vendored_frameworks property.
You should copy the .framework to the plugin folder, not inside Xcode, then adjust the patch and run npx cap update ios