对于pch文件,我收到以下错误:
/Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:6:34: error: Foundation/Foundation.h: No such file or directory
/Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:7:24: error: UIKit/UIKit.h: No such file or directory
Run Code Online (Sandbox Code Playgroud)
这是默认情况下的文件.
//
// 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
Run Code Online (Sandbox Code Playgroud)
我重新安装了xcode和iOS SDK,但没有解决问题.将iAd框架添加到我的某个项目后发生此问题,但我的所有项目都不会编译.
我正在使用最新的SDK(4.1).
框架在项目中.出于某种原因,当我尝试添加新框架时,它会在iOS项目中列出OSX.
感谢您的任何帮助.