简体   繁体   English

Xcode 7是否在生成操作时编译所有文件

[英]Does xcode 7compiles all files upon build action

  1. Do xcode 7 compiles all files upon build action while only few files are modified? xcode 7是否在编译操作时编译所有文件,而只修改了很少的文件?
  2. If YES, does XcodeBuild provides any support to customize building process by compiling only modified files ? 如果是,XcodeBuild是否通过仅编译修改后的文件来提供任何支持来定制构建过程?

Thanks 谢谢

  1. No. Xcode, by default, will not recompile unchanged files. 否。默认情况下,Xcode将不会重新编译未更改的文件。
  2. You can force a recompile of all files in the target, by first issuing a "clean" command. 您可以通过首先发出“ clean”命令来强制重新编译目标中的所有文件。
  3. Also note that Xcode will only compile files which are members of the current target. 另请注意,Xcode将仅编译属于当前目标成员的文件。

No, Xcode tracks dependencies and only compiles those files that need to be recompiled. 不,Xcode跟踪依赖关系,仅编译那些需要重新编译的文件。 If you're working in Objective-C it's a good idea to put your #import statements in your .m files where possible, since it prevents your project from becoming dependent on every single header file. 如果您在Objective-C中工作,最好将#import语句放在.m文件中,因为这样可以防止您的项目依赖于每个头文件。 (I don't know as much about how dependencies are determined in Swift.) (我对Swift中如何确定依赖项不太了解。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM