简体   繁体   中英

Does xcode 7compiles all files upon build action

  1. Do xcode 7 compiles all files upon build action while only few files are modified?
  2. If YES, does XcodeBuild provides any support to customize building process by compiling only modified files ?

Thanks

  1. No. Xcode, by default, will not recompile unchanged files.
  2. You can force a recompile of all files in the target, by first issuing a "clean" command.
  3. Also note that Xcode will only compile files which are members of the current target.

No, Xcode tracks dependencies and only compiles those files that need to be recompiled. 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. (I don't know as much about how dependencies are determined in Swift.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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