据我所知,.pch文件负责预编译头文件。听起来像是可以重建或重建的东西。
2个问题:
发布于 2011-07-04 03:41:43
.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/
发布于 2011-08-30 02:27:48
对于CocoaTouch (iPhone),它是:
//
// Prefix header for all source files of the 'Test' target in the 'Test' project
//
#import <Availability.h>
#ifndef __IPHONE_3_0
#warning "This project uses features only available in iPhone SDK 3.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif发布于 2011-07-04 03:41:23
如果您删除了pch头文件,然后从scm中取出它。如果你不使用scm --使用scm (例如git)。
如果您只是引用预编译的结果- xcode只是根据需要重新构建它。它不应该需要人工重建。如果您实际上需要手动重新构建它,您可以在派生数据目录(假设为Xc4)中找到它,或者在清理过程中简单地清理项目并删除预编译的标头。它们将在下一次构建时自动重新创建。
https://stackoverflow.com/questions/6567051
复制相似问题