This bug has been driving me nuts since I started using Xcode (4.6.3). Whenever I try to link a Storyboard item to my code, I get the error:
Could not find any information for class named ViewController.
This happens with custom classes as well. I've tried methods such as:
- Deleting the delegate data.
- Removing and re-adding the classes.
- Restarting Xcode.
- Reinstalling Xcode.
I can't ctrl-drag to create connections in any of my projects no matter what the class is. The same problem happens with a brand-new template application. If I type in the code manually and then ctrl-drag, I can make a working connection, but I can't add it automatically. Nothing I've been able to find so far on the Internet has helped. Any pointers?
Product > Clean (Command - Shift - K) fixed it for me!
Sometime Xcode does due to VC not referencing class file. The simple solution for this is:
write property manually as given.
This will make a empty link sign before @IBOutlet, open your project in assistant editor then click link sign and drag into the View which you want to connect (i have connected with TableView). and thats it. Enjoy Happy Coding!!!
What solved this issue for me was actually deleting the class from the project.
Steps:
This seems to force Xcode to link the class back into the storyboard.
Note: for me the following did not work:
I think this is a bug on Apple's part
Delete the files (only the references) and add the files again.
I tried everything and it didn't work, so for me what worked is:
All my view controllers were not being recognized, so deleting all files and re-adding was not an option as this is a big project.
This is the EASIEST step that I did to fix this problem.