How to modify the pod file so that it adds few extra native libraries on IOS

So , i have a bunch of native libraries which are distributed as pods , There isnt a capacitor plugin for it yet and i need these libraries to get initialised at the app launch .

I have added them to pod file which seem to be working for the first time , but after every ionic cap sync the pod file gets regenerated and the manually added pods are lost .

Can someone tell me what is the cleaner way to add custom pods to podfile in an ionic/capacitor app.

The Podfile has a # Add your Pods here comment, you can put your dependencies after that line.

Capacitor is supposed to only edit what’s in between of def capacitor_pods and the following end