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

后端 未结 12 1938
梦如初夏
梦如初夏 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:51

    For me the bug was caused by missing interface restoration. I think it happens when I open the project file where the Assets editor was open last time. If I close the tab which containts the Assets editor, quit Xcode then open the project again, works fine.

    0 讨论(0)
  • 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!

    0 讨论(0)
  • 2020-12-13 12:57

    I just experienced that the "Utility Area doesn't display anything" symptom, with Xcode version 9.0. Thanks for the tips! In my case, after I closed all the files displayed in the Assistant Editor, you would think it is totally not related, but it worked again! (Before that, I tried to restart XCode, restart iOS, none of them was working.)

    0 讨论(0)
  • 2020-12-13 13:00

    If the above solutions don't work, try adding an object (e.g a label) onto the main storyboard. Brought all the inspectors back for me with xcode 7.3

    0 讨论(0)
  • 2020-12-13 13:00

    The bug is weird. And all answers didn't help me. The following steps were useful for me:

    • go to project file.
    • Click on the button near "Launch Images Source"

    After that Xcode shows assets in the proper way.

    0 讨论(0)
  • 2020-12-13 13:01

    There is also possibility in Xcode 7.3.1. to switch between "Standard editor" and "Assistant editor" in the upper right corner to "deal" with this bug.

    0 讨论(0)
提交回复
热议问题