Skip to content

Some commands responses are going to stderr #571

@dmdmdm-nz

Description

@dmdmdm-nz

Describe the bug
When running the command ios devicestate list, the output appears to go to standard error (stderr) instead of standard output (stdout).

I had a quick look and it seems this issue also affects the following commands:

  • ios rsd ls
  • ios crash ls
  • ios ip
  • ios instruments notifications

To Reproduce
Steps to reproduce the behavior:

  1. Run the command and note the output
    ios devicestate list
  2. Redirect stderr and note that there is no output
     ios devicestate list 2> /dev/null

Expected behavior
The command response should be written to stdout.

Smartphone (please complete the following information):

  • Device: iPhone 16
  • OS: 18.2
  • Browser: N/A
  • Version: main

Additional context
It looks like this is occurring due to using println() instead of fmt.Println() in the commands above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions