Xcode,.pch文件被误删除,可以恢复吗? [英] Xcode, deleted .pch file by mistake, can it be recovered?

查看:124
本文介绍了Xcode,.pch文件被误删除,可以恢复吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

As i understand it, .pch files are responsible for precompiling header files. Sounds like something that can rebuilt or recreated.

2个问题:

  1. Xcode是否具有类似于回收站的功能,从那里可以撤消文件删除?
  2. 是否有直接的方法来重建.pch文件?

推荐答案

.pch文件通常非常简单,其内容取决于项目类型.基本思想是它包括重量级头文件. Xcode本身不会在基本模板之外修改此文件.如果您自行更改,它只会与模板不同.

The .pch file is generally very simple, and its contents depends upon the project type. The basic idea is that it includes the heavyweight header files. Xcode itself doesn't modify this file beyond the basic template; it'd only be different from the template if you changed it yourself.

对于Cocoa应用程序,它是:

For a Cocoa application, it is:

//
// Prefix header for all source files of the '%s' target in the '%s' project
//

#ifdef __OBJC__
    #import <Cocoa/Cocoa.h>
#endif

就是这样!您可以在SDK文件夹中找到所有模板.

That's it! You can find all the templates in the SDK folder.

iOS:/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/

这篇关于Xcode,.pch文件被误删除,可以恢复吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆