XCode Interface Builder显示“No selection”对于所有文件 [英] XCode Interface Builder is showing "No selection" for all files

查看:377
本文介绍了XCode Interface Builder显示“No selection”对于所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论我在Interface Builder中选择了什么,Inspector显然没有注册选择,只显示No selection。

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

我尝试打开和关闭文件,重启XCode甚至重启我的Mac。不用找了!到底发生了什么?

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

推荐答案

这让我疯了很长时间。我在Stackoverflow上没有发现任何关于此的内容,最初也没有通过谷歌搜索。

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.

从该网站剪切:


以下是如何在不重启
Xcode的情况下分两步修复它:

Here’s how you can fix it in two steps without even having to restart Xcode:


  • 在当前选项卡中选择另一个文件(不是Interface Builder类型)并出现问题。

  • 打开一个新选项卡并选择Interface Builder文件有问题。

羞辱你,Apple!

这篇关于XCode Interface Builder显示“No selection”对于所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆