I’m using Xcode 4.2, and I used Refactor->Rename on a class I created, which also renamed the file names.
After the refactor, Xcode could no longer recognize that these 2 files are counterparts – this means the assistant editor wouldn’t display the counterpart, and the keyboard shortcut to switch to counterpart wouldn’t work.
Is there any way to tell Xcode that these files are actually counterparts?
Well, turns out removing the reference for the renamed files and re-adding them does the trick.
I’m wondering if there was another way though – and why it happened in the first place (doesn’t always reproduce)…