Collecting Unified Logs on macOS systems is pretty straight forward. You can use the command, and yes – you must be root.
sudo log collect
Collection from iOS device is not as obvious. I think most of us do the sysdiagnosis / AirDrop method which is difficult. Trying to trigger a sewing diagnosis on an iOS device can be frustrating to get the right buttons with the right timing. (Not unlike trying to get a device in DFU mode!)
In the recent testing I noticed the argument ̵
– device name – The device name, ie: “Elwoods iPhone”
device – “First device found”. I guess I would consider this the #YOLO option. 🤷🏻♀️
This argument has been very useful in recent tests to circumvent the frustration of sewing diagnostics on iOS devices. I like to use UDID instead of name, so I want to use idevice_id from libimobiledevice to get it quickly.