I\'ve been using Xcode 4.3.1 since it came out now and i\'ve worked on many different projects since. Everything has always worked fine until this 1 new project i\'m working
In my case I solved in this way.
Now re-build.
This could be happen, for instance, when your manually rename a class after its creations.
Hope this help.
For others if none of the above mentioned methods worked try this :
Go to menu bar Xcode - > Preferences -> Locations -> Command Line Tools
Choose proper (current) Xcode format here.
Xcode 10.2.1 - simply closing Xcode entirely and reopening it solved it for me.
With Xcode 8.2 I solved in this way:
Now in your project see if cmd+click works
3 reasons this happens :
Corrupt derived data : Solution : clean derived data folder.
Corrupt project settings : Project.xcodeproject -> Right Click and clean the files mentioned in g_low's answer.
File not a part of project target : Check if the file is a part of compile source and if not add it...
I had this problem, restarted, quit Xcode, nothing happened. Switched to master branch, pulled, checkout into new branch. Problem Gone. I even went back to my previous branch and all was working. My only guess is that git messes up sometimes!