cordova-plugin-cocoapods-support icon indicating copy to clipboard operation
cordova-plugin-cocoapods-support copied to clipboard

Using local pod / podspec

Open JimmyYezeguelian opened this issue 6 years ago • 1 comments

Hi,

I'm wondering if the plugin allows us to use local pod ? I'm developing a SDK and want to create a cordova plugin before release it on a cocoapods spec repo.

Thanks a lot in advance.

JimmyYezeguelian avatar Nov 16 '18 16:11 JimmyYezeguelian

Hi, something like <pod name="YourSDK" spec=":path => '../pathTo/YourSDK.podspec'" /> in your plugin.xml should work.

The problem with this is, that the path to your podspec may be dependent on the project name. As a workaround, I simply copied my plugin to the www directory by also adding <asset src="src/ios/YourSDK" target="YourSDK" /> and used <pod name="YourSDK" spec=":path => 'www/YourSDK/YourSDK.podspec'" /> instead, which works in every case.

bbjay avatar Jul 02 '19 16:07 bbjay