Xcode,错误地删除.pch文件,可以恢复吗?

Jam*_*sev 3 xcode xcode-template

据我了解,.pch文件负责预编译头文件.听起来像是可以重建或重建的东西.

2个问题:

  1. Xcode是否有类似于回收站的文件删除文件可以撤消?
  2. 有没有直接的方法来重建.pch文件?

pai*_*ego 7

对于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
Run Code Online (Sandbox Code Playgroud)

  • 附注 - 如果您尝试将pch添加到没有pch的项目,请检查"预编译前缀标题"(是)和"前缀标题"(您的文件)的构建设置. (3认同)