publish: trueYou may have expressions in your code slowing down compile times. To find the worst offenders, run:
xcodebuild clean build -project <YOUR PROJECT FILE NAME>.xcodeproj/ OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-expression-type-checking" | grep -Ei '^\d+\.\d+ms\t/.+$' | sort -rUse temporary variables to break the slow expressions into multiple statements. In addition, it might be worth adding
-Xfrontendand-warn-long-expression-type-checking=100to your project’s “Other swift flags” build setting to be warned when an expression takes longer than 100 milliseconds to compile.