title: Points of Interest for iOS targets in Xcode 11.4 not working?
body: <p>I’m having troubles with Points of Interest logging in Xcode 11.4 (11E146) for iOS targets. I’m assuming it’s a bug, and have filed a bug report (FB7639664), but wondering if others are having problems, too. Or is there some obscure option that is preventing it from displaying properly? I don’t see anything obvious under the “Recording Options” for “Points of Interest” ...</p>
  
  <p>Anyway, consider this code:</p>
  
  <pre><code>import UIKit
  import os.log
  
  private let pointsOfInterest = OSLog(subsystem: "PointsOfInterestDemo", category: .pointsOfInterest)
  
  class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
          os_signpost(.event, log: pointsOfInterest, name: #function)
      }
  
      @IBAction func didTapStartRange(_ sender: Any) {
          let id = OSSignpostID(log: pointsOfInterest)
          os_signpost(.begin, log: pointsOfInterest, name: #function, signpostID: id)
  
          DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
              os_signpost(.end, log: pointsOfInterest, name: #function, signpostID: id)
          }
  
          os_log(#function)
      }
  
      @IBAction func didTapSignpost(_ sender: Any) {
          os_signpost(.event, log: pointsOfInterest, name: #function)
  
          os_log(#function)
      }
  }
  </code></pre>
  
  <p>In Xcode 11.3.1, if I profile and tap on a few buttons, I get:</p>
  
  <p><a href="https://i.stack.imgur.com/78VlL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/78VlL.png" alt="enter image description here"></a></p>
  
  <p>But same process in Xcode 11.4 results in:</p>
  
  <p><a href="https://i.stack.imgur.com/dIB6K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dIB6K.png" alt="enter image description here"></a></p>
  
  <p>Note, I’m showing the console, so you can see the taps are happening, but nothing in Points of Interest.</p>
  
  <p>It works in Xcode 11.3.1 (11C505), but not Xcode 11.4 (11E146). And in Xcode 11.4, it works for macOS targets, but not iOS targets. I’m running Catalina 10.15.4 (19E266) on MacBook Pro (15-inch, 2018). I tried deferred recording and using older simulator versions, too, all with no joy.</p>
  
  <p>By the way, while I report that it works for macOS targets, I did see some hinky behavior where the Points of Interest for my macOS target went blank for a fraction of a second, but came right back. While that is quite possibly unrelated, given the misbehavior in iOS, it didn’t instill confidence in the macOS implementation, either.</p>