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

后端 未结 14 1581
悲&欢浪女
悲&欢浪女 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:26

    One huge tip to halve compile times (for iOS projects at least) is to set Build Settings / Architectures / Build Active Architecture Only to YES.

    What this does (especially with the advent of 64-bit iPads/64-bit compiler) is to not build the binary for the architectures you're not currently using.

    Make sure you remember to re-enable this setting on submission to the app store, or your binary will not validate.

提交回复
热议问题