Xcode Interface Builder is showing “No selection” for all files

后端 未结 12 1987
梦如初夏
梦如初夏 2020-12-13 12:16

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 an

12条回答
  •  不知归路
    2020-12-13 12:56

    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!

提交回复
热议问题