Enable runtime checks to detect and avoid bugs in your code.
- Xcode 7.0+
Xcode provides several code diagnostics tools for you to use when running your app during development. To enable code diagnostics for your app in Xcode, select your app scheme and choose Product > Scheme > Edit Scheme.
Select the Run or Test action in the sidebar and navigate to the Diagnostics section. Under Runtime Sanitization, select the sanitizers that you wish to enable.