编辑器无法在 Xcode 中打开
我的 Xcode 有一个奇怪的问题。这是一个屏幕截图:
当我通常单击左栏中的文件时,它会在源代码中打开编辑器在右边。现在它不再发生了。有谁知道如何恢复到以前的样子吗?这让我发疯 问候 彼得
i have a weird problem with Xcode. Here's a screenshot:
When i usually clicked on the file in the left column it'd open in source code editor on the right. Now it doesn't happen. Does anyone know how to get it back the way it was before? it drives me crazy
greetings
peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
退出 Xcode 并重新启动它。
Quit Xcode and relaunch it.
我发现这现在有点旧了,但我也遇到了同样的问题。我要做的就是打开“界面生成器”程序,它是文件的编辑器,然后从该程序中找到并打开 .xib 文件。下次我尝试用 Xcode 打开它时,它成功了。
I see this is a little old now, but I had the same problem. The thing that I had to do was to open the "interface builder" program, wich is the editor for the file, then find and open the .xib file from that program. Next time I tried open it with Xcode it worked.
将源文件从“组和文件”窗格(通常位于左侧)拖到显示“无编辑器”的窗格中。无需重置默认值。
Drag a source file from the Groups and Files pane (usually on the left) over into the pane that says "No Editor". No need to reset the defaults.
如果单击顶部的“项目”、“测试”,然后单击右侧的列,会发生什么情况。它会在编辑器中打开文件吗?
What happens if you click on the Project, test, at the top, and then click in the columns on the right. Will it open the file in the editor?