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

后端 未结 12 1939
梦如初夏
梦如初夏 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 13:02

    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.

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

    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.

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

    Open the file in the new tab and it will work fine

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

    I just run into the same issue. And I see there is solution already but it could help others: make sure you are in the Main.storyboard and not in the LaunchScreen.storyboard

    Hope it helps!

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

    After trying above all tricks, I just made a copy somewhere of the file which has the issue and deleted that file from Xcode. Opened it directly from there and file seemed good. Dragging it to the project solved this heinous issue.

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

    none of the above answers worked for me, what worked was, there is a filter text box in bottom right and for some reason some random text was typed in that, just clearing that text box fixed the issue.

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