Hands-On Design Patterns with Swift
上QQ阅读APP看书,第一时间看更新

Configuring your project

In order to see the memory allocation backtraces, we need to enable Malloc Stack in our Scheme. You can do so by following these steps:

  1. Open your Scheme settings with ⌘ | <, or by navigating to Product | Scheme | Edit Scheme...
  2. Navigate to the Diagnostics tab
  1. Ensure that you select the options shown in the following screenshot:

With this configuration on your Scheme, you can run your project again, and we'll be able to debug memory issues in depth, right into Xcode.