cordova ios 1.6.1 setInfo errors?

623 views
Skip to first unread message

pagameba

unread,
Apr 18, 2012, 3:32:12 PM4/18/12
to phon...@googlegroups.com
Hi,

I'm trying to get cordova 1.6.1 integrated into my project.  I'm getting a number of errors in the log when opening the tab containing the cordova web view controller, I'm trying to understand if there is really a problem or not ...

2012-04-18 15:16:54.726 myApp[44418:13403] Device initialization: (function() {                                     try {                                         cordova.require('cordova/plugin/ios/device').setInfo({"name":"iPhone Simulator","uuid":"CD0A4F2F-D019-4AEB-9ABD-FE09A65B2957","platform":"iPhone Simulator","gap":"1.6.1","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.1.js file?";                                     }                                })()
2012-04-18 15:16:54.732 myApp[44418:13403] PluginResult:toJSONString - {"status":1,"message":"wifi","keepCallback":false}
2012-04-18 15:16:54.733 myApp[44418:13403] PluginResult toSuccessCallbackString: cordova.callbackSuccess('NetworkStatus0',{"status":1,"message":"wifi","keepCallback":false});
2012-04-18 15:16:57.318 myApp[44418:13403] PluginResult:toJSONString - {"status":1,"message":1,"keepCallback":false}
2012-04-18 15:16:57.319 myApp[44418:13403] PluginResult toSuccessCallbackString: cordova.callbackSuccess('INVALID',{"status":1,"message":1,"keepCallback":false});

I've included the CordovaLib.xcodeproj in my project directly rather than using the framework.  I have built a plugin which seems to be working, at least when I make a call to it from javascript it doesn't crap out - but when I send results back to the web view using CDVPluginResult it doesn't do anything - given the errors above, I'm concerned that there is a problem with CordovaLib rather than (the more likely answer) my plugin.

I created the installer from 1.6.1, installed it, and created a new project from it.  I see a similar error when running that project:

2012-04-18 15:11:17.863 test[43891:13403] Multi-tasking -> Device: YES, App: YES

2012-04-18 15:11:17.960 test[43891:13403] Error: executing module function 'setInfo' in module 'cordova/plugin/ios/device'. Have you included the iOS version of the cordova-1.6.1.js file?

Is everything working and its just a problem with my plugin or is there actually something wrong somewhere?

Cheers

Paul

pagameba

unread,
Apr 18, 2012, 5:03:49 PM4/18/12
to phon...@googlegroups.com
Well it seems to be working despite the somewhat scary log messages.  I suspect that there is something in the device info-related javascript that hasn't been updated for 1.6 ... I went with the assumption that it was me and got it working :)

Cheers

Paul

Shazron

unread,
Apr 18, 2012, 5:32:18 PM4/18/12
to phon...@googlegroups.com
It's just being too verbose. It has since been removed in 1.6.1

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Wytze

unread,
Apr 19, 2012, 6:52:31 AM4/19/12
to phonegap
Hi Shazron and Pagameba,

I have installed 1.6.1 and it is still giving me these "setInfo" error
messages in iPhone Simulator and iPad Simulator (both 4.3) running
with Xcode 3 on Mac OSX 10.6.8.

In both cases, Cordova-1.6.1.js is loaded and runs, but in the case of
iPad Simulator the deviceready event does not fire, but in iPhone
Simulator it fires just fine.

This is the error message, which is sent twice in both simulators:

iPad sim:
2012-04-19 12:47:24.836 Dual Cordova-Six 0-8-3[10841:40b] Device
initialization: (function() { try
{ cordova.require('cordova/
plugin/ios/device').setInfo({"name":"iPad
Simulator","uuid":"3995FEAC-7CCD-4409-91E8-07BEAD92278B","platform":"iPad
Simulator","gap":"1.6.1","version":"4.3"}); }
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.1.js
file?";

And iPhone sim:
2012-04-19 12:47:24.836 Dual Cordova-Six 0-8-3[10841:40b] Device
initialization: (function() { try
{ cordova.require('cordova/
plugin/ios/device').setInfo({"name":"iPad
Simulator","uuid":"3995FEAC-7CCD-4409-91E8-07BEAD92278B","platform":"iPad
Simulator","gap":"1.6.1","version":"4.3"}); }
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.1.js
file?";

Any idea what to do here?

Kind regards,
Wytze

On 18 apr, 23:32, Shazron <shaz...@gmail.com> wrote:
> It's just being too verbose. It has since been removed in1.6.1
>
>
>
>
>
>
>
> On Wed, Apr 18, 2012 at 2:03 PM, pagameba <pagam...@gmail.com> wrote:
> > Well it seems to be working despite the somewhat scary log messages.  I
> > suspect that there is something in the device info-related javascript that
> > hasn't been updated for 1.6 ... I went with the assumption that it was me
> > and got it working :)
>
> > Cheers
>
> > Paul
>
> > On Wednesday, April 18, 2012 3:32:12 PM UTC-4, pagameba wrote:
>
> >> Hi,
>
> >> I'm trying to get cordova1.6.1integrated into my project.  I'm getting a
> >> number of errors in the log when opening the tab containing the cordova web
> >> view controller, I'm trying to understand if there is really a problem or
> >> not ...
>
> >> 2012-04-18 15:16:54.726 myApp[44418:13403] Device initialization:
> >> (function() {                                     try {
>
> >> cordova.require('cordova/plugin/ios/device').setInfo({"name":"iPhone
> >> Simulator","uuid":"CD0A4F2F-D019-4AEB-9ABD-FE09A65B2957","platform":"iPhone
> >> Simulator","gap":"1.6.1","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.1.js file?";
> >>                           }                                })()
> >> 2012-04-18 15:16:54.732 myApp[44418:13403] PluginResult:toJSONString -
> >> {"status":1,"message":"wifi","keepCallback":false}
> >> 2012-04-18 15:16:54.733 myApp[44418:13403] PluginResult
> >> toSuccessCallbackString:
> >> cordova.callbackSuccess('NetworkStatus0',{"status":1,"message":"wifi","keep Callback":false});
> >> 2012-04-18 15:16:57.318 myApp[44418:13403] PluginResult:toJSONString -
> >> {"status":1,"message":1,"keepCallback":false}
> >> 2012-04-18 15:16:57.319 myApp[44418:13403] PluginResult
> >> toSuccessCallbackString:
> >> cordova.callbackSuccess('INVALID',{"status":1,"message":1,"keepCallback":fa lse});
>
> >> I've included the CordovaLib.xcodeproj in my project directly rather than
> >> using the framework.  I have built a plugin which seems to be working, at
> >> least when I make a call to it from javascript it doesn't crap out - but
> >> when I send results back to the web view using CDVPluginResult it doesn't do
> >> anything - given the errors above, I'm concerned that there is a problem
> >> with CordovaLib rather than (the more likely answer) my plugin.
>
> >> I created the installer from1.6.1, installed it, and created a new

Wytze

unread,
Apr 19, 2012, 6:53:48 AM4/19/12
to phonegap
Sorry, in iPhone sim that's:
2012-04-19 12:51:28.685 Dual Cordova-Six 0-8-3[10897:40b] Device
initialization: (function() { try
{ cordova.require('cordova/
plugin/ios/device').setInfo({"name":"iPhone
Simulator","uuid":"3995FEAC-7CCD-4409-91E8-07BEAD92278B","platform":"iPhone
Simulator","gap":"1.6.1","version":"4.3"}); }
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.1.js
file?";

On 19 apr, 12:52, Wytze <wytzeschou...@gmail.com> wrote:
> Hi Shazron and Pagameba,
>
> I have installed1.6.1and it is still giving me these "setInfo" error

Shazron

unread,
Apr 19, 2012, 10:35:20 AM4/19/12
to phon...@googlegroups.com
It's not an error, it's just verbose. Ignore it.

Joat

unread,
Apr 30, 2012, 11:42:38 PM4/30/12
to phon...@googlegroups.com
Same error message seems to be showing up in 1.7.0rc1 as well.

Shazron

unread,
May 1, 2012, 2:32:12 PM5/1/12
to phon...@googlegroups.com
Quite impossible, this line has been taken out:
https://github.com/apache/incubator-cordova-ios/commit/fad71d606d2895756ebe78902826c92a2643db01#CordovaLib/Classes/CDVViewController.m
Unless you are talking about some other logging.
>> > phonegap+u...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com

Joat

unread,
May 1, 2012, 7:01:16 PM5/1/12
to phon...@googlegroups.com
Sorry, I should have been more explicit.  The error messages I'm getting are this:

"Error: executing module function 'setInfo' in module 'cordova/plugin/ios/device'. Have you included the iOS version of the cordova-1.6.1.js file?"
and:
"Error: executing module function 'setInfo' in module 'cordova/plugin/ios/device'. Have you included the iOS version of the cordova-1.7.0rc1.js file?"


On Tuesday, May 1, 2012 12:32:12 PM UTC-6, Shazron Abdullah wrote:
Quite impossible, this line has been taken out:
https://github.com/apache/incubator-cordova-ios/commit/fad71d606d2895756ebe78902826c92a2643db01#CordovaLib/Classes/CDVViewController.m
Unless you are talking about some other logging.

>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to

Shazron

unread,
May 1, 2012, 7:10:23 PM5/1/12
to phon...@googlegroups.com
Not getting them here in a new project. What's your setup.
>> >> > phonegap+u...@googlegroups.com
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >> >
>> >> > For more info on PhoneGap or to download the code go to
>> >> > www.phonegap.com
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "phonegap" group.
>> > To post to this group, send email to phon...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > phonegap+u...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com

Joat

unread,
May 2, 2012, 1:08:53 PM5/2/12
to phon...@googlegroups.com
Will try starting a new project from scratch and see if I reproduce the error.  --J

On Tuesday, May 1, 2012 5:10:23 PM UTC-6, Shazron Abdullah wrote:
Not getting them here in a new project. What's your setup.

>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >> >
>> >> > For more info on PhoneGap or to download the code go to
>> >> > www.phonegap.com
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "phonegap" group.
>> > To post to this group, send email to phon...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to

Kirk Fickert

unread,
May 7, 2012, 4:48:29 PM5/7/12
to phon...@googlegroups.com
I'm getting the same error, which is breaking functionality with my image gallery (assuming that JS gets to that point in the code, encounters the error and stops processing the rest).  I'll try a clean build as well and see.  
Reply all
Reply to author
Forward
0 new messages