Xcode 4没有索引我的项目 [英] Xcode 4 is not indexing my project

查看:135
本文介绍了Xcode 4没有索引我的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Xcode 4停止索引的项目。因此,完整的类浏览器(符号导航器)和代码检测都不起作用。 0显示了类和协议等。
我通过删除派生数据和xcodeproj区域中的一些临时文件来重新启动索引过程。但这没有用。
有谁知道Xcode可以防止索引编码?

I have a project where Xcode 4 stopped indexing. As a consequence neither the complete class browser (symbol navigator) nor code sense work. 0 Classes and Protocols etc. are shown. I restarted indexing process by removal of some temporary files in the derived data and the xcodeproj area. But this does not help. Does anyone know what can Xcode prevent from indexing?

我重建了整个项目并希望找到原因:在 my-Prefix.pch file我包含了 #import< myheader.h> ,其中 myheader.h 是通过Header Search Path解决的。当我将此行更改为 #importmyheader.h时,代码检测和类浏览器再次工作。

I rebuilt the whole project and hopefully found the reason: In my-Prefix.pch file I included #import <myheader.h>, where myheader.h was resolved via Header Search Path. When I changed this line to #import "myheader.h", code sense and class browser worked again.

推荐答案

我的Mac上每周发生几次。

This occurs a few times a week on my mac.


  1. 我退出xcode

  2. 我删除〜/ Library / Developer / Xcode / DerivedDatas文件夹

  3. 我重新启动Xcode,再次重新启动。

希望这对你也有用。

这篇关于Xcode 4没有索引我的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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