Skip to content

"flutter logs" do not show logs on iOS 13+ physical device #44199

Open

Description

@jmagman

Steps to Reproduce

  1. Attach iOS 13+ device
  2. flutter logs

No logs are printed.
See #41133

Activity

  1. added
    platform-iosiOS applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Nov 5, 2019
  2. jmagman commented on Nov 5, 2019

    @jmagman
    MemberAuthor

    There's no (publicly exposed) way to get live unified logs off a device from the host's command line. May need to connect to the VM service.

  3. zanderso commented on Nov 5, 2019

    @zanderso
    Member

    The 'logs' command is not used very often. We should consider fixing this issue by removing it.

  4. zanderso commented on Nov 12, 2019

    @zanderso
    Member

    Let's add a printError() at the top of the log command indicating that the command will be removed in the next stable.

  5. Hixie commented on Nov 16, 2019

    @Hixie
    Contributor

    I'd rather we didn't deprecate this. I use it all the time on Android. I understand that it might not work on iOS, but it should be fine for it to continue working on other platforms. It's convenient because it filters down to flutter logs only, unlike adb logcat, and we can make it cleverer (e.g. automatically symbolicating stack traces in crashes).

  6. changed the title [-]flutter logs do not show logs on iOS 13+ physical device[/-] [+]"flutter logs" do not show logs on iOS 13+ physical device[/+] on Jan 15, 2020
  7. added
    P2Important issues not at the top of the work list
    on Aug 11, 2020
  8. dnfield commented on Jun 4, 2021

    @dnfield
    Contributor

    See #84000 for some more discussion.

    This appears to work again on iOS 14 devices. @jmagman is this as simple as just removing

    // syslog is not written on iOS 13+.
    if (_majorSdkVersion >= minimumUniversalLoggingSdkVersion) {
    return;
    }
    and updating tests?

  9. jmagman commented on Jun 4, 2021

    @jmagman
    MemberAuthor

    See #84000 for some more discussion.

    This appears to work again on iOS 14 devices. @jmagman is this as simple as just removing

    // syslog is not written on iOS 13+.
    if (_majorSdkVersion >= minimumUniversalLoggingSdkVersion) {
    return;
    }

    and updating tests?

    I think just removing that would cause duplicate flutter run/drive logs since the logs are also being streamed from an lldb session.

  10. dnfield commented on Jun 4, 2021

    @dnfield
    Contributor

    I'll try to experiment.

  11. removed their assignment
    on Apr 21, 2023
  12. eseidel commented on May 18, 2023

    @eseidel
    Contributor

    I'm not sure if this is the right issue to discuss this, but I'm also not seeing flutter run logs on iOS. I do see logs when I open up XCode. It looks like #66399 attempted to fix this a couple years ago. Not sure the current status. I'm using

    eseidel@erics-mbp src % flutter --version                                                                      
    Flutter 3.10.1 • channel stable • https://github.com/flutter/flutter.git
    Framework • revision d3d8effc68 (2 days ago) • 2023-05-16 17:59:05 -0700
    Engine • revision b4fb11214d
    Tools • Dart 3.0.1 • DevTools 2.23.1
    
    iPhone in Pocket (mobile) • 00008120-0011315A2290C01E • ios            • iOS 16.4.1 20E252
    
  13. eseidel commented on May 18, 2023

    @eseidel
    Contributor

    I mostly wanted logs (flutter run logs would be fine) for when I'm editing the engine and wish to log from the engine code. but I can use https://github.com/flutter/flutter/wiki/Debugging-the-engine#debugging-ios-builds-with-xcode for now if needed.

  14. eseidel commented on May 18, 2023

    @eseidel
    Contributor

    Filed #127121

  15. added
    P3Issues that are less important to the Flutter project
    and removed
    P2Important issues not at the top of the work list
    on Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: regressionIt was better in the past than it is nowplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions