Do warnings in Xcode affect build time? Does that mean that projects that have 0 warnings compile faster than those with tons of warnings?
1
votes
2 Answers
1
votes
No it doesn't but any function or expression that exceeds 100ms will be flagged as a warning.
To decrease build time you can go through this link: How to decrease build times / speed up compile time in Xcode?
1
votes
My guess (and it's only a guess) is yes. Printing the warnings into the console might take some time, plus the fact of these warnings probably means that the compiler is having to do more thinking in order to parse your code, which suggests that it might be taking longer to process the build. You have access to build time statistics in the Report navigator, so it would be easy to confirm or deny this for yourself with some rudimentary testing.