Method 'init' is defined in class 'NSObject' and is not visible

Hi
i installed AppCode a while back and just upgraded again.
I opened a project that it had opened before.

I'm getting weird NSObject errors everywhere. Cant find methods sich as alloc/init.!!!!  any ideas? is there an index I need to rebuild somewhere?

AppCodeScreenSnapz002.png

It's pointing to the latest Xcode /ios7.1.1.

5 comments

Could you please try to do File | Invalidate Caches / Restart?

0

no didnt work.

AppCodeScreenSnapz003.png

Weirdly I can Click on NSObject and it opens NSObject.h which appears to be under the correct XCode.app in /Applications

AppCodeScreenSnapz004.png

AppCode using same XCode
AppCodeScreenSnapz005.png



I close AppCode and renamed
/Users/gbxc/Library/Caches/appCode20
to
/Users/gbxc/Library/Caches/appCode20OLD
and restarted it
and whole directory recreated
/Users/gbxc/Library/Caches/appCode20

Still didnt work for the project I was working on and firs a clean single view application.

I had old versions of XCode in my application folder. I moved them to Trash and emptied the Trash.
I renamed the cache folder again and restarted and still same errors.

Weirdly asks me to import objc/NSObject.h so it does find the file just cant compile against it!
AppCodeScreenSnapz006.png

0

And if you create just a new empty project will NSObject be found correctly?

Also check please if smth is set to your Header Search Paths in Project settings.

0

got it working but had to wipe all settings folders for /appcode20 and do clean install.

0

Ok. If you see this again check project settings, may be smth is set there.

0

Please sign in to leave a comment.