Re: Issues in Xcode Version 4.6 (4H127) + cordova-2.3.0 lib

721 views
Skip to first unread message

Becka11y

unread,
Feb 4, 2013, 11:12:43 AM2/4/13
to phon...@googlegroups.com
The two warnings in JSONKit.m are just deprecation warnings - the code still works.  In addition, JSONKit.h and .m files have been removed in 2.4 (which should be released this week).  These files are replaced by CDVJSON.h and .m which use the NSJSONSerialization foundation classes  (Thanks to Shaz).  

I don't see the CDVLocation.m warning and that file has not bee updated in quite some time so I am not sure what the issue is there.  But again, I do not see it with the upcoming 2.4 release.

-becky

On Sunday, February 3, 2013 10:25:48 AM UTC-5, Flaboy.com wrote:

Hi there

New issues in X-Code 4.6

/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/JSON/JSONKit.m
/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/JSON/JSONKit.m:680:12: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:77:11: Instance variable is declared here
/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/JSON/JSONKit.m:931:17: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:77:11: Instance variable is declared here
/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/CDVLocation.m
/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/CDVLocation.m:485:56: Implicit conversion from enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') to different enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')

I've upgraded XCode to the latest version 4.6 (4H127)

got installed  Cordova 2.3.0 lib
// commit 24d65ab645742e8360c3dd16d7a36411cc3383e0
// File generated at :: Thu Jan 03 2013 16:57:26 GMT-0800 (PST)

What I shall do to resolve that?

Cheers

S

Shazron

unread,
Feb 4, 2013, 10:28:39 PM2/4/13
to phonegap
I tried on a fresh 2.3.0 download in a fresh 2.3.0 project, I only get the 2 JSONKit warnings which are harmless, besides as Becky pointed out we removed JSONKit support since it hasn't been maintained for the past half year, and we are moving on to using built in NSJSONSerialization support.


On Mon, Feb 4, 2013 at 4:27 PM, Nie Mand <phil.b...@gmail.com> wrote:
Same here after xcode update and frankly no idea how to resolve it.


Am Sonntag, 3. Februar 2013 16:25:48 UTC+1 schrieb Flaboy.com:

Hi there

New issues in X-Code 4.6

/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/JSON/JSONKit.m
/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/JSON/JSONKit.m:680:12: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:77:11: Instance variable is declared here
/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/JSON/JSONKit.m:931:17: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:77:11: Instance variable is declared here
/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/CDVLocation.m
/Volumes/OKO/Misiaka/Desktop/Documents/Apps/Work/iOS/Squizzar/CordovaLib/Classes/CDVLocation.m:485:56: Implicit conversion from enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') to different enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')

I've upgraded XCode to the latest version 4.6 (4H127)

got installed  Cordova 2.3.0 lib
// commit 24d65ab645742e8360c3dd16d7a36411cc3383e0
// File generated at :: Thu Jan 03 2013 16:57:26 GMT-0800 (PST)

What I shall do to resolve that?

Cheers

S

--
-- 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
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Shazron

unread,
Feb 6, 2013, 8:27:49 PM2/6/13
to phonegap
Thanks Chantal for that key piece of information. I've filed an issue: https://issues.apache.org/jira/browse/CB-2392


On Thu, Feb 7, 2013 at 1:57 AM, Chantal Gagne <chantal...@gmail.com> wrote:
I also only got 2 warnings. But I got the 3rd warning after I tried to run on device. Attached is the screenshot of the error message.

sriggle

unread,
Feb 18, 2013, 1:41:23 PM2/18/13
to phon...@googlegroups.com
Did you find a way to remove that CDVLocation.m warning? I get in  xcode 4.6 and phonegap 2.4

thanks,
Scott
Reply all
Reply to author
Forward
0 new messages