Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Cordova Plugins with Phonegap - no Cordova.plist

Tags:

xcode

ios

cordova

I am trying to install a plugin for my application (which is working fine), compiled in XCode using Cordova and the PhoneGap framework.

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.

What is the fix for this issue?

like image 506
Ben Avatar asked Jan 26 '13 12:01

Ben


1 Answers

Since PhoneGap upgraded, the Cordova.plist file was discontinued and is instead config.xml.

Source


Edit: Since the original page has since been deleted, here is a sort-of transcript from the forum thread:

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

From http://shazronatadobe.wordpress.com/2012/12/10/whats-new-in-cordova-ios-2-3-0/

Cordova.plist is changed to config.xml

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.

Try to edit the new config.xml accordingly - we are working on a updated Plugin compliant to 2.3.0 in the next weeks.

like image 185
Ben Avatar answered Nov 12 '22 03:11

Ben