Skip to content

Conversation

@vashworth
Copy link
Contributor

@vashworth vashworth commented Jun 12, 2024

Works with connected and wireless devices.

Prototype for #133465

Note: lldb does not receive logs. Maybe there's a command to do that?

Alternatively, you can get logs via devicectl with this command (the key pieces being OS_ACTIVITY_DT_MODE and --console:

xcrun devicectl device process launch --device 00000000-0000000 --start-stopped --environment-variables '{"OS_ACTIVITY_DT_MODE": "enable"}' --console com.example.vanilla --enable-dart-profiling

However, using --console leaves the launch process running, so it doesn't print the results of what process was started.

This could be resolved by getting the processes using devicectl

xcrun devicectl device info processes --device 00000000-0000000 --json-output /path/to/a/file/processes.json

And matching the executable against the installationURL from the devicectl device install app command.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant