You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Paul Spencer <pa...@gmail.com> on 2012/04/11 21:00:18 UTC

CordovaLib 1.6.0 iOS problem

Hi.  I'm trying to integrate Cordova into an existing iOS application as a
tab.  Due to conflicts with JSONKit and another library I am using, I am
trying to include CordovaLib.xcodeproj into my project rather than using
the framework.  So far, I have managed to add a tab with a UIViewController
containing a CDVViewController and it runs, loading the web page that gets
included with the template project (Hey, it's Cordova) and
cordova-1.6.0.js.  At that point, I get this in my xcode error log and I'm
pretty much stuck now.  What is NetworkStatus?  It seems to be an enum, not
a CDVPlugin.  What have I done wrong?

*2012-04-11 13:57:00.261 myapp[22380:13403] Device initialization:
(function() {                                     try {

cordova.require('cordova/plugin/ios/device').setInfo({"name":"iPhone
Simulator","uuid":"CD0A4F2F-D019-4AEB-9ABD-FE09A65B2957","platform":"iPhone
Simulator","version":"5.1"});                                     } catch
(e) {                                         return "Error: executing
module function 'setInfo' in module 'cordova/plugin/ios/device'. Have you
included the iOS version of the cordova-1.6.0.js file?";
                  }                                })()*

*2012-04-11 13:57:00.267 **myapp**[22380:13403] execute class:NetworkStatus
method:getConnectionInfo*

*2012-04-11 13:57:00.269 **myapp**[22380:13403] arguments:
["NetworkStatus0"]*

*2012-04-11 13:57:00.269 **myapp**[22380:13403] options: (null)*

*2012-04-11 13:57:00.270 **myapp**[22380:13403] ERROR: Plugin
'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin mapping
in Cordova.plist.*

*2012-04-11 13:57:00.270 **myapp**[22380:13403] FAILED pluginJSON =
{"className":"NetworkStatus","methodName":"getConnectionInfo","arguments":["NetworkStatus0"]}
*

Re: CordovaLib 1.6.0 iOS problem

Posted by Paul Spencer <pa...@gmail.com>.
RTFM ... thank you, that did the trick.  I had downloaded 1.5 framework and
1.6 from git and somehow got the plist from the 1.5 framework version.  doh.

On Wed, Apr 11, 2012 at 3:23 PM, Shazron <sh...@gmail.com> wrote:

> Guide:
>
> https://github.com/apache/incubator-cordova-ios/blob/master/guides/Cordova%20Upgrade%20Guide.md
>
> New Cordova.plist:
>
> https://github.com/apache/incubator-cordova-ios/blob/master/Cordova-based%20Application/Cordova.plist#L33
>
> On Wed, Apr 11, 2012 at 12:16 PM, Shazron <sh...@gmail.com> wrote:
> >> *2012-04-11 13:57:00.270 **myapp**[22380:13403] ERROR: Plugin
> >> 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin
> mapping
> >> in Cordova.plist.*
> >
> > Did you do what it instructs above? The "Cordova Upgrade Guide" does
> > say that you need to grab a whole new Cordova.plist, and explains why.
>

Re: CordovaLib 1.6.0 iOS problem

Posted by Shazron <sh...@gmail.com>.
Guide:
https://github.com/apache/incubator-cordova-ios/blob/master/guides/Cordova%20Upgrade%20Guide.md

New Cordova.plist:
https://github.com/apache/incubator-cordova-ios/blob/master/Cordova-based%20Application/Cordova.plist#L33

On Wed, Apr 11, 2012 at 12:16 PM, Shazron <sh...@gmail.com> wrote:
>> *2012-04-11 13:57:00.270 **myapp**[22380:13403] ERROR: Plugin
>> 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin mapping
>> in Cordova.plist.*
>
> Did you do what it instructs above? The "Cordova Upgrade Guide" does
> say that you need to grab a whole new Cordova.plist, and explains why.

Re: CordovaLib 1.6.0 iOS problem

Posted by Shazron <sh...@gmail.com>.
> *2012-04-11 13:57:00.270 **myapp**[22380:13403] ERROR: Plugin
> 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin mapping
> in Cordova.plist.*

Did you do what it instructs above? The "Cordova Upgrade Guide" does
say that you need to grab a whole new Cordova.plist, and explains why.