[英]Does xcode 7compiles all files upon build action
Thanks 谢谢
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.