I read about the Runtime Sanitization in the Apple docs in the new Xcode 7, so I looked for it, and found that it's disabled. I'm using Xcode 7 GM seed.
When I go into the Run action of the scheme > Diagnostics tab, the Enable Address Sanitizer
option is disabled:
There is some explanation about how other options are disbled, but no mention of why the sanitization option would be disabled:
Some diagnostic tools can be used in combination with others; the options available on the Diagnostics pane are enabled and disabled as different options are chosen to help you select option combinations. For example, enable the address sanitizer and other, incompatible tools are disabled and cannot be chosen
Looking at the Clang 3.8 documentation for Addresssanitizer, it looks like it can also be enabled, by adding a flag: -fsanitize=address
. But where this flag should be used in the build settings is a mystery, and questionable since it also exists as a checkbox option in the scheme.
Also found this SO answer, but it is rather complex, and probably outdated, since it was back in 2013.