There are a couple of long-winded arttechnique, however I have not seen anything quick and to the point. The first thing you are going to want to do is turn on Whole Module Optimization in Debug (by default, it is only on in Release). Here are the optimization settings: Before: After: The next thing you want to do is specify -Onone in Other Swift Flags in