Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 4 stopped highlight and recognizing UIKit classes on project

Hi i get problem with xCode 4.

I develope project with XCode4 on home and on work.

And i store it on my USB flash drive.

Today i get some problem.

I open xib file for add outlet to code and get next error "Could not insert new outlet connection: Could not find any information for the class named ..." Class exist and property of xib file setted correctly. Could not insert new outlet connection: Could not find any information for the class named

Ok, think i, i write code and the connect using Files owner.

Next step i open code editor of .h class file and try to write UI... and see nothing. i dont get list of classes UI types

Next i saw what XCode code editor does not highlighting classes of UIKit and else frameworks too.

But i dont have this error on another projects and on it project but on home computer.

Some body have same problem?

like image 400
Dmitry Nelepov Avatar asked Oct 06 '11 07:10

Dmitry Nelepov


3 Answers

Try this: Close your project. Choose Window > Organizer from the main menu. Select the Projects panel. Select and delete all copies of your project from the list. Open the project again (Xcode will rebuild the necessary information).

This will not delete your project, but the index and other information Xcode discovers about your project. As I said, Xcode will rebuild the information as soon as you re-open the project.

like image 177
Joshua Nozzi Avatar answered Oct 24 '22 10:10

Joshua Nozzi


We had a really similar problem happen to us and none of the help out there worked. What did end up fixing it was deleting the .m and .h file from xcode (resource only) and then dragging them back into the project from the project folder. It seemed to relink everything and make it work again.

like image 2
Jared Katz Avatar answered Oct 24 '22 11:10

Jared Katz


Just add .m files in Compile Sources under:

<My Project> 
   -- TARGETS <My App Name>
        -- Build Phase tab 
          -- Compile Sources

It fix the problem.

like image 1
Finello Avatar answered Oct 24 '22 11:10

Finello