When I call instance method AppCode always report error In AppCode 2.3 EAP

Answered

When I called method like

'

[UIColor whiteColor]

'

or

'

[NSNotificationCenter defaultCenter]

'

or

'

[UIApplication sharedApplication]

'

IDE always report error : instance method is called from the class context.

When I use Appcode 2.2 there are no this problem.

 

1
5 comments

Hi,

That's happening because of new feature in Objective-C & Xcode 8 - class properties (OC-14107). In AppCode 2016.2.2, you're likely using Xcode 7.x (Preferences | Tools | Xcode), that's why you don't see the issue there.

Please vote and watch the ticket for progress, we're working on it at the moment.

1

Hi Tatiana,

does it mean that when I have Xcode 8 selected in AppCode, the error should not be there? It is till happening in my case. Both 2016.2.3 EAP and 2016.3 EAP

 

cheers

0

@Chaljan, I think she's saying it happens with Xcode 8, not 7.  

It's happening to me too.  

[NSCalendar currentCalendar]

Luckily I the amount of Objective-C code I look at seems to grow smaller every day! :-)

0

+1 I'm seeing this too, configured to use Xcode 8 w/ OSX 10.12, AppCode version 2016.2.2 Build #OC-162.1967.8

0

FYI, this has been fixed in https://youtrack.jetbrains.com/issue/OC-14107

and released in

AppCode 2016.3 EAP Build #OC-163.6110.27, built on October 13, 2016

AppCode 2016.2.3 RC, build 162.2380.3, October 13th, 2016

0

Please sign in to leave a comment.