Is there any way to view iOS device logs on the Terminal?

Solution 1:

i believe libimobiledevice is what you're looking for. github repo can be found here

it's a cross-platform lib talking to iDevices with no jailbrake needed. just use console command

$ idevicesyslog

you can install it via homebrew or compile from sources

macOS install via homebrew

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

$ brew install -v --devel --fresh automake autoconf libtool wget libimobiledevice

$ brew install -v --HEAD --fresh --build-from-source ideviceinstaller

linux

sudo apt-get update

sudo apt-get install libimobiledevice ideviceinstaller

Solution 2:

Yes you can see iOS system logs from the the Mac command line.

Install Apple Configurator. It has an official helper tool to show the log files and perform other handy tasks.

cfgutil syslog

The help command is quite useful and you can install it from the "Install Automation Tools..." menu item once you run Apple Configurator 2