对于 pch 文件,我收到以下错误:
/Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:6:34:错误:Foundation/Foundation.h:没有这样的文件或目录
/Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:7:24:错误:UIKit/UIKit.h:没有这样的文件或目录
这是默认情况下的文件:
//
// Prefix header for all source files of the 'iPhone Monkey Curling' target in the 'iPhone Monkey Curling' project
//
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
我重新安装了 Xcode 和 iOS SDK,但这并没有解决问题。将 iAd 框架添加到我的一个项目后出现此问题,但我的所有项目都无法编译。
我正在使用最新的 SDK (4.1)。
框架在项目中。出于某种原因,当我尝试添加新框架时,它会列出 iOS 项目中的 OS X 框架。
感谢您的任何帮助。