• Chris Bracken's avatar
    Migrate to os_log for reading iOS simulator logs (#12079) · dd7e3133
    Chris Bracken authored
    1. Migrate simulator device log tailing to os_log toolchain
    2. When the log tag (component) is available (iOS 11/Xcode 9), filter to
       the set of log lines with tag 'Flutter'.
    
    As of iOS 11 / Xcode 9, Flutter engine logs are no longer recorded in the
    simulator's syslog file, which we previously read using tail -f. Instead
    they're now accessible through Apple's new macOS/iOS os_log facility,
    via /usr/bin/log, which supports a relatively flexible query language.
    
    When run in non-interactive mode, /usr/bin/log buffers its output in 4k
    chunks, which is significantly smaller than what's emitted up to the
    point where the observatory/diagnostics port information is logged. As a
    workaround we force it to run in interactive mode via the script tool.
    dd7e3133
simulators_test.dart 8.57 KB