There are three main ways to increase the speed of compiling links:
1. Increase the number of threads used when Xcode compiles
The code is as follows:
Defaults Write Com.apple.Xcode pbxnumberofparallelbuildsubtasks 4
Xcode is compiled by default using the same threads as the CPU cores, but because the IO operations in the compilation process tend to be more than the CPU, the appropriate number of lifting threads can speed up the compilation to some extent.
2. Change debug Information format to dwarf
In the project's build settings for target, locate the debug Information format and change the debug dwarf with DSYM file to dwarf.
This setting is whether to add debugging information to the executable file, after changing to dwarf, if the program crashes, you will not be able to output the function stack corresponding to the crash location, but because debug mode in Xcode can view debugging information, so the dwarf effect is not big. After this change is complete, the compilation speed can be greatly improved.
3. Change build Active Architecture only to Yes
In the project's build settings for target, find build Active Architecture only, and change debug No to Yes.
This setting is whether to compile only the version of the current schema, and if no, all versions of the schema are compiled. It is important to note that this option must be yes in release mode, otherwise the published IPA will not run on some devices. After this change is complete, you can significantly increase the compilation speed.
After setting up the above three items, I believe the compilation time will be shortened a lot.
Article Source: http://www.jb51.net/article/67496.htm
3 Ways to slow Xcode compilation