How to decrease build times / speed up compile time in Xcode?

后端 未结 14 1562
悲&欢浪女
悲&欢浪女 2020-12-04 06:40

What strategies can be used in general to decrease build times for any Xcode project? I\'m mostly interested in Xcode specific strategies.

I\'m doi

14条回答
  •  渐次进展
    2020-12-04 07:21

    Often, the largest thing you can do is to control your inclusion of header files.

    Including "extra" header files in source code dramatically slows down the compilation. This also tends to increase the time required for dependency checking.

    Also, using forward declaration instead of having headers include other headers can dramatically reduce the number of dependencies, and help all of your timings.

提交回复
热议问题