[英]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. 我正在构建一个包装由一些更高功率提供的SDK的插件。
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
. Cordova在XCode构建设置中设置Framework Search Paths
很酷,但似乎我需要的是Library Search Paths
。
How should I write the plugin.xml to add such a static library? 我应该如何编写plugin.xml来添加这样的静态库?
试试吧
<source-file src="srcpath/to/static-lib.a" framework="true" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.