Interface Builder和Xcode集成无法正常工作 [英] Interface Builder and Xcode integration not working

查看:141
本文介绍了Interface Builder和Xcode集成无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装iPhone SDK 3.1.2后,Interface Builder不再与Xcode同步。 XIB窗口底部的指示灯为灰色。 IB没有看到Xcode项目中的任何文件。当我开始IB时,Xcode总是打开。

After having installed the iPhone SDK 3.1.2, Interface Builder is not in sync with Xcode anymore. The light indicator at the bottom of the XIB window is grey. IB doesn't see any files from the Xcode project. Xcode is always open when I start IB.

我尝试重新启动。没有运气。

我尝试删除Xcode / IB的首选项文件。没有运气。

我尝试重新安装Xcode / IB。仍然没有运气。

I tried rebooting. No luck.
I tried removing the preferences files for Xcode/IB. No luck.
I tried reinstalling Xcode/IB. Still no luck.

这个页面解释了IB如何监控Xcode中的变化。虽然这是一个有趣的阅读,它没有提供任何有关如何调查我的问题的帮助。

This page explains how IB monitors the changes in Xcode. While it was an interesting read, it didn't provide any help about how to investigate my problem.

任何帮助将不胜感激。

编辑

以下是其他信息。我为launchd启用了调试日志,我注意到每次启动Interface Builder时都会出现以下行:

EDIT
Here's additional information. I enabled the debug logs for launchd, and I noticed the following line that appears every time Interface Builder is started:

[0x0-0x1b01b].com.apple.InterfaceBuilder3[315]: Couldn't open shared capabilities memory GSCapabilities (No such file or directory)

这似乎与我的问题有关。

This really seems to be related to my issue.

推荐答案

我遇到了同样的问题而且它是我疯了。

I have been having the same problem and it's been driving me nuts.

奇怪的是,这似乎是因为使用Xcode中的文件>打开最近的项目菜单打开你的项目,或者通过使用Xcode欢迎屏幕中的Recent Documents列表。

Bizarrely, it seems to be caused by opening your project using the File > Open Recent Project menu in Xcode, or by using the Recent Documents list in the Xcode welcome screen.

如果我在Finder中双击项目文件以打开它或从Recent Items菜单中选择项目在Apple菜单中,Xcode与Interface Builder的连接完好无损。

If I double-click the project file in the Finder to open it or choose the project from the Recent Items menu in the Apple menu, Xcode's connection to Interface Builder is intact.

这对你有帮助吗?

这篇关于Interface Builder和Xcode集成无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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