Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using local pod / podspec #45

Open
JimmyYezeguelian opened this issue Nov 16, 2018 · 1 comment
Open

Using local pod / podspec #45

JimmyYezeguelian opened this issue Nov 16, 2018 · 1 comment

Comments

@JimmyYezeguelian
Copy link

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.

@bbjay
Copy link

bbjay commented Jul 2, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants