Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Interface Builder is showing "No selection" for all files

No matter what I've got selected in Interface Builder, the Inspector did apparently not register the selection and only showed "No selection".

I tried opening and closing files, restarting Xcode and even rebooting my Mac. No change! What the heck is going on?

Other projects work just fine. It's just this project...

like image 276
Marius Waldal Avatar asked Dec 19 '15 16:12

Marius Waldal


3 Answers

This was driving me crazy for a long time. I found nothing here on Stackoverflow about this, and not by googling either, initially.

Luckily, after googling a couple of different ways, I finally found the simple solution here.

Snipped from that site:

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.

Shame on you, Apple!

like image 122
Marius Waldal Avatar answered Oct 21 '22 16:10

Marius Waldal


In Xcode 8.3, the preferred solution doesn't appear to work. My solution, similar to travdu, was to click the "Show the version editor" button (the two arrows pointing left and right), then back to the "Show the Standard editor". Doing that fixed it for me.

like image 24
Tim Newton Avatar answered Oct 21 '22 17:10

Tim Newton


MOST SIMPLE SOLUTION:

(For each of those who has tried all the above options like me, try this once):

  1. Switch to the LaunchScreen.storyboard from your Main.storyboard

  2. See if you can access all the Inspectors on right side in LaunchScreen.storyboard .

if yes,

  1. Switch back to Main.storyboard

Always work for me! Hope this also help to someone. Thanks!

EDIT 1:

Above solution works for xib only projects too.

like image 18
iHarshil Avatar answered Oct 21 '22 16:10

iHarshil