Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
727 views
in Technique[技术] by (71.8m points)

ios - 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...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...