Hi,
I’m encountering an issue when profiling an application with xctrace and Instruments on macOS. When I try to record a trace using either the CPU Profiler or CPU Counters template, the recording fails with the following error:
Failed to start the recording:
configureHardwareCounters: Failed set kpc configuration: Operation not permitted.
The issue was also present in the previous macOS 27.0 build (26A428) and remains after updating to macOS 27.0.1 (26A434)
System:
- Apple M6 Mac mini
- macOS 27.0.1, build 26A434
- Xcode 27.0, build 27A266a