vilicvane
vilicvane

Reputation: 12413

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?

Upvotes: 7

Views: 4434

Answers (1)

jcesarmobile
jcesarmobile

Reputation: 53301

Try with

<source-file src="srcpath/to/static-lib.a" framework="true" />

Upvotes: 19

Related Questions