IOS – ny way to view iOS device logs on the Terminal

command lineioslogsmacos

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

Best Answer

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