Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add static library instead of a framework for Cordova ios plugin?

I am building a plugin that wraps an SDK provided by some higher power.

And I wrote something like this:

<framework src="path/to/static-lib.a" custom="true" />

Cordova setup the Framework Search Paths in XCode Build Settings which is cool, but it seems that what I need is Library Search Paths.

How should I write the plugin.xml to add such a static library?

like image 477
vilicvane Avatar asked Dec 28 '14 18:12

vilicvane


1 Answers

Try with

<source-file src="srcpath/to/static-lib.a" framework="true" />
like image 67
jcesarmobile Avatar answered Oct 15 '22 11:10

jcesarmobile