title: Memory profiling doesn't work with Xcode, just displays "No Selection"
body: <p>I am using the latest version of Xcode 9 and macOS 10.13.</p>
  <p>When I try to make a memory graph from the current state of my application, it shows an empty screen that says <strong>No Selection</strong>.</p>
  <p><a href="https://i.stack.imgur.com/VNqGd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VNqGd.png" alt="&quot;No selection&quot; title after trying to create a memory graph" /></a></p>
  <p>I also tried to profile and work with Instruments, but it did not allow me to run due to a permission error.</p>
  <blockquote>
  <p>Target failed to run.</p>
  <p>Permission to debug [app name] was denied.</p>
  </blockquote>
  <p>I am <strong>aware of these threads</strong> and tried the suggestions available in them, but they <strong>didn't seem to work</strong>:</p>
  <ul>
  <li><a href="https://www.reddit.com/r/iOSProgramming/comments/71au2i/has_instruments_stopped_working_for_you_in_xcode/" rel="nofollow noreferrer">Reddit - Has instruments stopped working for you in Xcode 9 due to a permission denied error? Is there a workaround for this?</a></li>
  <li><a href="https://forums.developer.apple.com/thread/87813" rel="nofollow noreferrer">Apple Developer Forums - Xcode 9 - Instruments permission denied</a></li>
  <li><a href="https://stackoverflow.com/questions/2661399/why-do-i-get-instruments-target-failed-to-run">Stack Overflow - Why do I get instruments - “Target failed to run”?</a></li>
  <li><a href="https://stackoverflow.com/questions/18905450/cant-launch-my-app-in-instruments-at-least-one-target-failed-to-launch">Stack Overflow - Can't launch my app in Instruments: At least one target failed to launch</a></li>
  </ul>
  <p><strong>Things that I tried:</strong></p>
  <ul>
  <li>Restarting Xcode</li>
  <li>Emptying the Derived Data folder</li>
  <li>Cleaning the project</li>
  <li>Cleaning the Build folder</li>
  <li>Modifying the scheme's application environment to Debug instead of Release</li>
  <li>Manually managing provisioning profiles and selecting Development profiles for Debug and Release</li>
  <li>Trying simulators with different OS versions (iOS 11, iOS 10)</li>
  </ul>
  <p>Looks like it's a specific issue with Xcode 9.</p>
  <p>Are there any workarounds for this issue?</p>