使用Phonegap安装Cordova插件 - 无Cordova.plist [英] Installing Cordova Plugins with Phonegap - no Cordova.plist
问题描述
我试图为我的应用程序安装一个插件(这是工作正常),使用Cordova和PhoneGap框架在XCode中编译。
I am trying to install a plugin for my application (which is working fine), compiled in XCode using Cordova and the PhoneGap framework.
插件我应该添加一个键到 Cordova.plist 文件,但我不能在我的层次结构中找到它。 这是我的XCode项目中的目录的屏幕截图。
On the instructions of the plugin I am supposed to add a key to the Cordova.plist file but I cannot find it in my hierarchy. Here is a screenshot of the directories in my XCode project.
什么是
推荐答案
自PhoneGap升级后, Cordova.plist 文件已停止, config.xml 。
Since PhoneGap upgraded, the Cordova.plist file was discontinued and is instead config.xml.
:由于原始网页已被删除,以下是论坛帖子中的一系列文字记录:
Edit: Since the original page has since been deleted, here is a sort-of transcript from the forum thread:
您使用全新的PhoneGap版本2.3.0,这是发布7/2013年1月? Wikitude插件目前仅通过PhoneGap 2.2.0进行测试。 In 2.3.0 cordova.plist已更改为config.xml
Are you using the brand new PhoneGap version 2.3.0, which was release 7/Jan/2013? The Wikitude plugin is currently only tested with PhoneGap 2.2.0. In 2.3.0 cordova.plist has been changed to config.xml
从 http://shazronatadobe.wordpress.com/2012/12/10/whats-new-in-cordova -ios-2-3-0 /
Cordova.plist已更改为config.xml
Cordova.plist is changed to config.xml
配置Cordova.plist文件已更改为config.xml - 它采用与Android config.xml相同的新格式。如果要升级,则需要通过运行bin / cordova_plist_to_config_xml脚本转换现有的Cordova.plist。如果您仍然使用旧的Cordova.plist并告诉您升级,2.3.0项目本身将会警告您(在控制台日志中)。
The configuration Cordova.plist file has been changed to config.xml – it comes in a new format that is the same as the Android config.xml. If you are upgrading, you will need to convert your existing Cordova.plist by running the bin/cordova_plist_to_config_xml script. The 2.3.0 project itself will warn you (in the console log) if you are still using the old Cordova.plist and tell you to upgrade.
尝试编辑新的config.xml相应 - 我们正在开发一个更新的插件符合2.3.0在接下来的几周。
Try to edit the new config.xml accordingly - we are working on a updated Plugin compliant to 2.3.0 in the next weeks.
这篇关于使用Phonegap安装Cordova插件 - 无Cordova.plist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!