简体   繁体   中英

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?

试试吧

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM