Documentation
¶
Overview ¶
Command stdlogprobe live-checks that what an iOS app writes to stdout and stderr reaches the device log when the app is started without Xcode, as it is from the home screen (#914). Android already sends both to logcat.
Once a second for 30 s it writes one marked line to each of stdout, stderr and package log:
stdlogprobe stdout n=3 stdlogprobe stderr n=3 stdlogprobe log n=3
At start it also writes a 5000-byte stderr line, which reaches the log in pieces, and 1 MiB of stderr in one go, then logs "stdlogprobe burst done": that line proves a writer is never blocked by the pipe behind stderr. It then exits by itself.
Package from this directory, install, and launch WITHOUT --console (with it, stdout and stderr are the console, and are left alone):
bellui package -os ios --app-id com.trendvidia.stdlogprobe \
--cert "Apple Development: Benedicto Franco Jr. (D68Z8W925S)"
xcrun devicectl device install app --device <UDID> stdlogprobe.app
pymobiledevice3 syslog live --udid <UDID> -m stdlogprobe # in another shell
xcrun devicectl device process launch --device <UDID> com.trendvidia.stdlogprobe
All three kinds of line must appear in the log, each with its n, and each once: stdout at the default level, stderr at the error level, log at the default level with no second NSLog header.
Measured on an iPad (10th gen, 2026-11-03), launched by devicectl without --console: before the fix no line of any kind arrived, package log included, though the app ran its 30 s and exited; after it all 30 of each, the burst finished, and the long line arrived in 1 KiB pieces. With --console all three kinds show in the console instead.