Xcode 11.4中iOS目标的兴趣点不起作用?

问题描述 投票:0回答:1

我无法在iOS目标的Xcode 11.4(11E146)中记录兴趣点。我假设这是一个错误,并且已提交错误报告(FB7639664),但想知道其他人是否也有问题。还是有一些晦涩的选项阻止其正确显示?我在“兴趣点”的“记录选项”下看不到任何明显的内容...

无论如何,请考虑以下代码:

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)
    }
}

在Xcode 11.3.1中,如果我分析并点击一些按钮,则会得到:

enter image description here

但是Xcode 11.4中的相同过程导致:

enter image description here

注意,我正在显示控制台,因此您可以看到正在发生轻按,但是兴趣点什么都没有。

它在Xcode 11.3.1(11C505)中有效,但在Xcode 11.4(11E146)中无效。在Xcode 11.4中,它适用于macOS目标,但不适用于iOS目标。我在MacBook Pro(15英寸,2018年)上运行Catalina 10.15.4(19E266)。我也尝试了延迟录制并使用了较旧的模拟器版本,所有这些都不令人高兴。

顺便说一句,尽管我报告说它适用于macOS目标,但我确实看到了一些棘手的行为,其中我的macOS目标的兴趣点在短短的一秒钟内就变成了空白,但又回来了。尽管这很可能无关紧要,但鉴于iOS的不当行为,它也没有灌输对macOS实施的信心。

xcode instruments xcode11.4
1个回答
0
投票

FWIW,Apple已确认该问题并正在调查。

© www.soinside.com 2019 - 2024. All rights reserved.