This question already has an answer here:
Could not insert new outlet connection: Could not find any information for the class and not showing any class named "ViewController"
Solutions I have done : - Restarted XCode - Restarted System - Deleted the Deriveddata contents from /Library/developer/xcode
But nothing worked for me
Here is the screenshot for the error
I recently came across this problem. I soon realized that the cause had been my own doing. I had previously disabled XCode indexing (which used to take forever & eat up my RAM), using the below code in a terminal window:
To revert XCode to its default state, i used the following line in a terminal window:
Voila! All's well again..
Finally I did it by removing the xcode completely from my mac and reinstall the xocde.dmg file and then install MobileDevice.pkg and MobileDeviceDevelopment.pkg residing on /Applications/Xcode.app/Contents/Resources/Packages
I got the same problem as you today... I think this is a bug of Xcode, below is the way to fix the issue:
After these steps, the problem should be solved. And from my experience, these steps can solve many Xcode problems, so if you got some problem with Xcode again, try these steps first.
If you've imported the Class into your Xcode Project you have to manually add the Class (.m file) to your 'Compile Sources'.
Select project icon > TARGETS > Build Phases > Compile Sources Click the + button and add your *.m file.
That's most often a problem of
file indexing
.To fix it try to
clean your target
and if this doesn't work, go to yourDerived Data
folder and delete your application there. This will force xCode to reindex the filesJust got the same issue on Xcode 4.6.2.
Tried solutions presented in different answers/comments, but it still didn't work.
Then all I did was to just:
Hope this will save some time/frustration for somebody else.