Xcode 3.2.1-基于神秘的插件/首选项,符号/文档查找失败 [英] Xcode 3.2.1 - Symbol / Documentation lookup is failing based on mystery plugin/preference

查看:38
本文介绍了Xcode 3.2.1-基于神秘的插件/首选项,符号/文档查找失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从升级到Xcode 3.2.1以来,我遇到了一个奇怪的问题,它确实杀死了我的工作流程.该问题仅在我自己的用户帐户下显示(由其他用户打开的同一项目可以正常工作).因此,这个问题的核心是:从用户目录中加载Xcode可能会导致此问题的原因是什么?"

Since upgrading to Xcode 3.2.1, I've experienced a strange issue that has really killed my workflow. The issue only exhibits itself under my own user account (the same project opened by a different user works fine). Therefore, the heart of this question is, "what does Xcode load from the user directory that could conceivably cause this issue?"

(系统:雪豹10.6.1;带有iPhone SDK 3.1.2的Xcode 3.2.1)

(System: Snow Leopard 10.6.1; Xcode 3.2.1 w/ iPhone SDK 3.1.2)

症状:

  • 代码完成仅适用于当前类的符号或已在该类中引用的符号.几乎没用.
  • 文档/参考查找(即,双击标识符或符号会返回此奇怪的结果):未找到符号'symbol name'的文档.单击此处查看符号声明."
  • Code completion only works on symbols of the current class or already referenced in the class. Virtually useless.
  • Document/reference lookups (i.e. option-double-clicking on an identifier or symbol returns this strange result): "Documentation not found for the symbol 'symbol name'. Click here to view symbol declaration."

就像我说的那样,由于其他用户在Xcode中遇到正常行为,这一定是由于仅为我的用户帐户加载了某些内容.我已经消除了~/Library/Preferences/com.apple.Xcode.plist~/Application Support/Developer,〜/Application Support/Xcode`.

Like I said, since other users are experiencing normal behavior in Xcode, this must be due to something only loaded for my user account. I've already eliminated ~/Library/Preferences/com.apple.Xcode.plist, ~/Application Support/Developer,~/Application Support/Xcode`.

我最近安装的唯一东西是 mogenerator (已失效的xmod集成可能已经将其杀死了) ,但不会在用户目录中安装任何内容)

The only thing I've recently installed is mogenerator (the defunct xmod integration may have killed it, but it doesn't install anything to the user directory)

更新:09年10月26日 这真的开始杀了我.我进行了全新的OS X安装,然后从Leopard光盘安装了Xcode 3.2,然后从ADC站点安装了iPhone SDK,并且在开始工作后30分钟内又开始重新安装.我完全不知所措.在选项上双击符号(例如NSString类)时,错误最明显,而不是获得文档摘要,而是显示一条消息无法确定当前选择的符号".出现.

Update: 10/26/09 This one is really starting to kill me. I did a fresh OS X install, followed by an Xcode 3.2 install from the Leopard disc, followed by an iPhone SDK install from the ADC site, and this started occurring again within 30 minutes of my having started working. I'm at an utter loss. The error is most obvious when option-double-clicking on a symbol (say, the NSString class) and instead of getting the documentation snippet, a message "Cannot determine the symbol for the current selection." appears.

更新:09/10/26#2 我刚刚尝试创建一个新项目,该项目的符号看起来很好.因此,该问题显然是我的项目的本地问题.希望这是一个更好的开始.为了证明我在说什么,下面是一个有关文档的问题屏幕:

Update: 10/26/09 #2 I just tried creating a fresh project, and that project's symbols are appearing fine. So the issue is apparently local to my project. Hopefully that's a better start. To demonstrate what I'm talking about, here's a screen of the issue manifesting itself with respect to documentation:

推荐答案

您是否尝试过重建CodeSense索引?项目>编辑项目设置>常规>

Have you tried rebuilding your CodeSense index? Project > Edit Project Settings > General >

替代文字http://idisk.mac.com/cdespinosa/Public/Rebuild .png

这样做之后,检查Console.app以查看Xcode是否发出了任何警告.您的某些源代码有可能导致索引器停止,并且您最终没有获得有效的索引.向Apple提交错误并提供源代码(如果可能)将有助于Apple解决此类问题.

After doing that, check Console.app to see if Xcode issued any warnings. It's possible that some of your source code causes the indexer to stop, and you don't end up with a valid index. Filing a bug with Apple and providing the source, if possible, would help Apple fix problems like this.

这篇关于Xcode 3.2.1-基于神秘的插件/首选项,符号/文档查找失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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