mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() Workaround solution for: https://github.com/flutter/flutter/issues/121231
See https://github.com/flutter/flutter/issues/120808#issuecomment-1551826299 Error Case 2 for more information.
Sometimes the `ios-deploy` process does not return the logs from the application. We've been unable to figure out why. This is a solution to workaround that by using `idevicesyslog` alongside `ios-deploy` as a backup in getting the log for the Dart VM url. As explained in https://github.com/flutter/flutter/issues/120808#issuecomment-1551826299, when error case 2 happens, the `idevicesyslog` does successfully find the Dart VM.
Also, in the comments of the code it mentions `syslog` is not written on iOS 13+, this was added in response to this issue: https://github.com/flutter/flutter/issues/41133.
However, `idevicesyslog` does in fact work (at least for iOS 16), we use it to collect device logs for our CI tests already:
|
||
---|---|---|
.. | ||
code_signing_test.dart | ||
devices_test.dart | ||
ios_deploy_test.dart | ||
ios_device_install_test.dart | ||
ios_device_logger_test.dart | ||
ios_device_port_forwarder_test.dart | ||
ios_device_project_test.dart | ||
ios_device_start_nonprebuilt_test.dart | ||
ios_device_start_prebuilt_test.dart | ||
ios_project_migration_test.dart | ||
ios_workflow_test.dart | ||
mac_test.dart | ||
simulators_test.dart | ||
xcodeproj_test.dart | ||
xcresult_test_data.dart | ||
xcresult_test.dart |