The iOS syslog was removed in iOS 13.3. Prior to that, you could still view the deprecated syslog if you compiled your tweaks using an iOS 9 or lower SDK. Apple introduced oslog in iOS 10.
- Clone https://github.com/theos/theos/ to
$THEOS/sdks
. - Change
$THEOS/vendor/logos/bin/lib/Logos/Generator/Base/Method.pm:73
fromHBLogDebug(...
orNSLog(...
, depending on theos version, tolog(...
. - Add the following to
$THEOS/include/HBLog.h
:-
#define log(...) HBLogWarn(@"<NOSS>: %@", [NSString stringWithFormat:__VA_ARGS__]);
on line 19, ie if you're running os_log / iOS 10+ SDK. -
#define log(...) HBLogDebug(__VA_ARGS__);
on line 41, ie when not running an iOS 10+ SDK.
-
- On your iDevice, add
alias debug="oslog | awk 'f; /\)/{f=0} /:/{print; f=/\(/}'"
to/etc/profile.d/profile.sh
and source it afterwards. You may need to create the file if you haven't already.