"xcrun xctrace record --device" sometimes run sometimes not and gives this message "Waiting for device to boot"

"xcrun xctrace record --device " commands starts recording info through instruments and store it in a file but sometimes it run properly and sometimes says following "Waiting for device to boot"

I have also tried xcode 13.1 CLT Checked on multiples devices Changed cables as well

Same here... It is a big pain trying to launch xcxtrace via CLI and getting a decent way to get the output. It will be very nice to handle stderr properly so we can handle the error and retry, ask the user to reboot, etc.

A complimentary answer would be like: How this errors (or errors on before run) can be caught from CLI?

Thanks!!!

Hi there,

Please reproduce the issue and collect sysdiagnose on both host and target devices by following instructions here. File a feedback for Developer Tools in Feedback Assistance with that attached. Report back here the feedback number, and refer to this post in the feedback. It’ll be important in determining what’s exactly the issue we’re facing.

Thanks!

Anton

"xcrun xctrace record --device" sometimes run sometimes not and gives this message "Waiting for device to boot"
 
 
Q