From Xcode 4.0 and onward (including Xcode 7) I’ve encountered an Interface Builder issue that happens occasionally. The “Attributes Inspector” says “No Selection” when an object is clearly selected. Restarting Xcode, or even rebooting, sometimes does not fix the problem.
Here’s how you can fix it in two steps without even having to restart Xcode:
- Select another file (which isn’t an Interface Builder type) in the current tab with the issue.
- Open a new tab and select the Interface Builder file which was having the problem.
Problem solved! If anyone has any input on this issue and solution, let us know in the comments. I haven’t been able to determine what causes the problem, but in every case I’ve seen, the above two steps will get you back on track.
Posted in: Xcode Tip