How to Take Screenshot by devicectl

I would like to use devicectl to take a picture of my iPhone screen on iOS 17. So far I have successfully performed,

  • Launching and exiting the app I created.
  • Reboot the iPhone connected via USB

etc.... I used to use libimobiledevice, but when I bought a new iPhone with iOS17, I can't do it anymore.

How to Take Screenshot by devicectl
 
 
Q