xCode 4.4无法获取所有.pch文件头导入? [英] xCode 4.4 does not get all the .pch file headers imports?

查看:108
本文介绍了xCode 4.4无法获取所有.pch文件头导入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的.pch文件-

This is my .pch file -

   //
// Prefix header for all source files of the 'English Club' target in the 'English Club' project
//

#import <Availability.h>

#ifndef __IPHONE_4_0
#warning "This project uses features only available in iOS SDK 4.0 and later."
#endif

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
    #import <CoreData/CoreData.h>
    #import "Helper.h"
    #import "Animations.h"
    #import "Constants.h"
    #import "SoundPlayer.h"
    #import "UAirship.h"
    #import "UAStoreFront.h"
    #import "UIIMagesNames.h"
    #import "UIView+Sizes.h"
    #import "HelpButton.h"
    #import "SoundPlayer.h"
    #import <RestKit/RestKit.h>
    #import "UIHelpSoundFiles.h"


#endif

Xcode经常给我他找不到那些类的错误. (例如,Helper). 事实是该项目将被编译并可以正常工作,但是我有数百个错误困扰着我寻找真正的错误.

Still it is very frequent that Xcode will give me errors that he can not find those classes. (Helper for example). The thing is that the project will be compiled and work fine but I have hundreds of errors that disturb me looking for the real ones.

知道为什么吗?

推荐答案

这似乎是Xcode 4.4中的一个已知问题(如

This appears to be a known issue in Xcode 4.4 (as seen in the release notes)

建议Delete the PCH index folder解决此问题.

要找到此文件夹,请在Xcode中打开管理器并选择项目"选项卡,然后在左侧窗格中选择项目.您应该看到此特定项目的Derived Data路径,并带有一个指向Show in Finder的小箭头.如果单击此箭头,您将被带到Finder中的正确位置.然后,如果您导航到Index子文件夹并删除PrecompiledHeaders文件夹,则应该已经准备就绪.

To locate this folder, in Xcode, open the Organizer and select the Projects tab, then select the project in the left-hand pane. You should see the Derived Data path for this particular project with a small arrow to Show in Finder. If you click on this arrow, you will be taken to the right location in Finder. If you then navigate to the Index subfolder and delete PrecompiledHeaders folder, you should be all set.

Xcode应该重新索引并重新创建此文件夹,但是错误应该消失了.

Xcode should re-index, and re-create this folder, but the errors should be gone.

这篇关于xCode 4.4无法获取所有.pch文件头导入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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