如何使用Phonegap 3上的plugin.xml复制自定义ios框架 [英] How to copy a custom ios framework using plugin.xml on Phonegap 3
问题描述
我目前正在为phonegap 3制作一个插件。我有一个使用source-file指令复制的自定义框架。在我试过的plugin.xml中:
I am currently making a plugin for phonegap 3. I have a custom framework to copy using the source-file directive. In the plugin.xml I tried:
<source-file src="libs/ios/mylib.framework" />
但是当我将插件添加到项目中时出现错误:
but I get the error when I add the plugin to my project:
mylib.framework是一个目录(未复制)
mylib.framework is a directory (not copied)
我试过按文件复制框架文件,但它在错误的目录中。
I tried to copy the framework file by file but it is going in the wrong directory.
如何使用plugin.xml文件复制自定义ios框架?
How can I copy a custom ios framework using the plugin.xml file?
推荐答案
好消息:在我们发言时,似乎科多瓦人正在研究这个问题。有一个功能请求以及承诺解决此问题的GitHub 。 框架
标记将支持 custom =true
属性。例如,以下是如何为 AWS iOS SDK运行时框架执行此操作:
Good news: it seems that the Cordova folks are working on this as we speak. There is a feature request as well as a commit to GitHub that claims to resolve this issue. The framework
tag will support the custom="true"
attribute. For example, here's how you could do it for the AWS iOS SDK Runtime framework:
<framework src="src/ios/Frameworks/AWSRuntime.framework" custom="true" />
更新:看来此更改已成为当前稳定版本2013年11月29日科尔多瓦(两天前)。只需更新你的Cordova和Plugman二进制文件就可以了。你好了。
UPDATE: It seems that this change made it into the current stable release of Cordova on 11/29/2013 (two days ago). Just update your Cordova and Plugman binaries and you should be good to go.
$ npm update -g cordova # if using `cordova plugin add xyz`
$ npm update -g plugman # if using `plugman install --platform x --project y --plugin z`
这篇关于如何使用Phonegap 3上的plugin.xml复制自定义ios框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!