解决方法
.pch文件通常非常简单,其内容取决于项目类型.基本思想是它包含重量级头文件. Xcode本身不会在基本模板之外修改此文件;如果您自己更改它,它只会与模板不同.
对于Cocoa应用程序,它是:
// // Prefix header for all source files of the '%s' target in the '%s' project // #ifdef __OBJC__ #import <Cocoa/Cocoa.h> #endif
而已!您可以在SDK文件夹中找到所有模板.
iOS:/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates /