Xcode 4.2符号导航器搞砸了 [英] Xcode 4.2 symbol navigator mucked up

查看:91
本文介绍了Xcode 4.2符号导航器搞砸了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出乎意料的是,符号导航器(导航器窗格左侧的第二个图标)开始只允许我访问单个.h文件。 项目导航器继续显示整个项目。

Out of the blue, the "symbol navigator" (second icon from the left in the navigator pane) started just giving me access to a single .h file. The "project navigator" continues to display the entire project.

我尝试来回翻转,重新启动Xcode等,但无济于事。它停留在那个文件上。

I've tried flipping things back and forth, restarting Xcode, etc, to no avail. It's stuck on that one file.

我得到的一个线索是.h文件是项目第二个目标中唯一的.h,一个测试目标。但是我没有看到任何方法来选择符号导航器导航的目标(与项目相比)(我肯定没有玩任何可能影响这个的设置。)

The one clue I have is that the .h file is the only .h in the project's second target, a test target. But I don't see any way to select a target (vs the project) for navigation by the symbol navigator (and I definitely didn't "play with" any settings that might affect this.)

任何想法?导航已经在Xcode 4中使用了,我不需要进一步解决这个问题。

Any ideas? Navigation already sux in Xcode 4, and I don't need to be further hamstrung by this problem.

其他信息:我注意到Cmd /点击项目中定义的符号会产生符号未找到,当符号绝对存在时(通过搜索找到)。

Additional Info: I notice that Cmd/Click on a symbol defined in the project produces "Symbol not found", when the symbol is most definitely present (and is found by search).

叹息神秘地再次开始工作。唯一可能的线索是,我们在一个点上与该计划打趣(与另一个问题相关)。

Sigh Mysteriously started working again. Only possible clue is that we were dinking with the scheme at one point (related to another problem).

1/9/12 正如神秘地回来了。然而,这是在从CVS更新后发生的。

1/9/12 Just as mysteriously returned. This happened after updating from CVS, however.

1/10/12 想出问题在于Xcode的索引内容,以及发现你可以删除索引(以及其他派生数据的东西)并强制它在Organizer / Projects中重建。那样做了,当我下次打开项目时重建了索引。但是,现在导航器只列出测试目标中的一些文件,所以实际上是向后退一步。

1/10/12 Figured out that the problem is with Xcode's "indexing" stuff, and found that you can delete the index (and other "derived data" stuff) and force it to be rebuilt in Organizer/Projects. Did that, and the index was rebuilt when I next opened the project. However, now the Navigator only lists a few files in a test target, so actually a step backwards.

推荐答案

干得好!非常感谢!

我遇到了相同的问题,特别是这里的症状:
1)Cmd +点击方法调用,.h文件,定义的名称导致找不到符号消息
2)编辑器中的代码突出显示不会在颜色上绘制上述对象
3)符号导航器(Cmd + 2)只是空的

I was having issue of the same origin, specifically here are the symptoms: 1) Cmd + Click on method calls, .h files, defined names leads to "Symbol not found" message 2) Code highlighting in editor doesn't paint the above mentioned objects in colours 3) Symbol Navigator (Cmd + 2) is just empty

在Organizer / Project中删除受影响项目的派生数据并重新打开项目解决了这个问题。重新打开项目时,重新编制索引会自动执行,然后再次运行!

Deleting derived data for affected project in Organizer/Project and reopening the project solved the issue. When you reopen the project reindexing is automatically executed and it works again!

可惜XCODE非常错误。 : - (

Pity that XCODE is so buggy. :-(

一旦ag,,非常感谢Hot Licks!

Once againg, many thanks to Hot Licks!

这篇关于Xcode 4.2符号导航器搞砸了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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