Is Swift done type-check multiple times when building

64 Views Asked by At

I'm currently working on build time optimization. I added these 2 lines to the 'Other swift flags' debug option.

After a clean building of the project, I saw some lines give warnings multiple times. Are these warnings coming from type-checking multiple times?

If I just add : UIColor after the definition, is it solves?

-Xfrontend -warn-long-function-bodies=50
-Xfrontend -warn-long-expression-type-checking=50

enter image description here

0

There are 0 best solutions below