2 Replies
      Latest reply on Mar 31, 2020 6:16 PM by garethfromwellington
      eoonline Level 1 Level 1 (0 points)

        I use “Points of Interest” signposts and ranges all the time. But with Xcode 11.4, I’m no longer seeing signposts for my iOS targets. Is this a known issue?

         

        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: "viewDidLoad")
            }
        
            @IBAction func didTapStartRange(_ sender: Any) {
                let id = OSSignpostID(log: pointsOfInterest)
                os_signpost(.begin, log: pointsOfInterest, name: "didTapStartRange", signpostID: id)
        
                DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
                    os_signpost(.end, log: pointsOfInterest, name: "didTapStartRange", signpostID: id)
                }
        
                os_log("didTapStartRange")
            }
        
            @IBAction func didTapSignpost(_ sender: Any) {
                os_signpost(.event, log: pointsOfInterest, name: #function)
        
                os_log("didTapSignpost")
            }
        }
        
        

        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 13.2 simulator target, all with no joy.