Blog

Pro tip from Daniel Jalkut on turning off compiler optimization for debug builds. The short of it is that the Swift compiler has its own separate optimization settings. So to turn off optimization for Swift code, you need to change both the LLVM and Swift Compiler Optimization Levels.

Daniel's article is worth reading for more details and a commendable example of an Apple engineer noticing Daniel's "whining" (his word :-) on Twitter and quickly following up with the solution.