Xcode项目CMD-单击“跳转到定义"符号不起作用 [英] Xcode project CMD-Click on symbol to 'Jump to Definition' does not work

查看:316
本文介绍了Xcode项目CMD-单击“跳转到定义"符号不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从Xcode 4.3.1发布以来,我一直在使用它,从那时起我就从事许多不同的项目.在我从事这个新项目之前,一切都运转良好.

I've been using Xcode 4.3.1 since it came out now and I've worked on many different projects since. Everything has always worked fine until this new project I'm working on.

代码完成/代码意义永远找不到.通常,当我"Command + Click"一个变量或类时,它会跳转到该变量或类,但现在我得到的是:

The code completion/code sense never finds anything. When I 'Command+Click' a variable or class normally it would jump to that but now I'm just getting:

未找到符号

跳转到定义操作不起作用.

如果在打开这个较旧的项目时打开了一个较旧的项目,则旧的仍然可以进行代码检测,而新的则不能.

If I open one of my older project while this bad one is open, the old ones still work for code sense and the new one doesn't.

我的合伙人正在同一个项目上工作,我们都从存储库中获取文件,并且代码意义在他的计算机上可以用于该项目……不是我的.

My partner is working on the same project, we both get the files from our repository and the code sense works on his machine for this project...just not mine.

推荐答案

尝试一下:

打开组织者.在Xcode中关闭您的项目(使Xcode和组织者保持运行状态).在组织者的项目中,单击派生数据"旁边的删除"按钮.退出Xcode.

Open the organizer. Close your project in Xcode (leaving Xcode and the organizer running). In the organizer, in projects, click on the Delete button next to Derived Data. Quit Xcode.

通过查找器找到您的Xcode项目.右键单击并显示包装内容".删除project.xcworkspace和xcuserdata文件夹.

Find your Xcode project via the finder. Rightclick and "Show Package Contents". Delete project.xcworkspace and xcuserdata folder.

再次打开Xcode,看看是否适合您.

Open up Xcode again and see if that works for you.

这篇关于Xcode项目CMD-单击“跳转到定义"符号不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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