flutter/packages/flutter_tools/test/general.shard/ios
Victoria Ashworth cd18c8c02f
Workaround for Dart VM timeout (#127875)
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: 1dc26f80f0/dev/devicelab/lib/framework/devices.dart (L998-L1006)
2023-06-02 17:17:57 +00:00
..
code_signing_test.dart Change some required nullable parameters in tool to non-null (#114115) 2022-11-04 17:36:01 +00:00
devices_test.dart Show warning when attempting to flutter run on an ios device with developer mode turned off (#125710) 2023-05-22 22:06:15 +00:00
ios_deploy_test.dart Revert "Log all lines from ios-deploy (#127502)" (#127684) 2023-05-26 20:11:54 +00:00
ios_device_install_test.dart Show warning when attempting to flutter run on an ios device with developer mode turned off (#125710) 2023-05-22 22:06:15 +00:00
ios_device_logger_test.dart Workaround for Dart VM timeout (#127875) 2023-06-02 17:17:57 +00:00
ios_device_port_forwarder_test.dart [tool] Consistent FakeProcessManager.run/runSync (#103947) 2022-05-17 11:15:54 -07:00
ios_device_project_test.dart Show warning when attempting to flutter run on an ios device with developer mode turned off (#125710) 2023-05-22 22:06:15 +00:00
ios_device_start_nonprebuilt_test.dart Show warning when attempting to flutter run on an ios device with developer mode turned off (#125710) 2023-05-22 22:06:15 +00:00
ios_device_start_prebuilt_test.dart Show warning when attempting to flutter run on an ios device with developer mode turned off (#125710) 2023-05-22 22:06:15 +00:00
ios_project_migration_test.dart Migrate Xcode projects last version checks to Xcode 14.3 (#125827) 2023-05-02 00:06:33 +00:00
ios_workflow_test.dart Only show iOS simulators, reduce output spew in verbose (#108345) 2022-07-26 19:08:06 +00:00
mac_test.dart Separate attached and wireless devices (#122615) 2023-03-15 16:35:05 +00:00
simulators_test.dart Revert "[flutter_tools] Remove sound null safety flag (#123031)" (#123280) 2023-03-22 22:53:49 +00:00
xcodeproj_test.dart Allow .xcworkspace and .xcodeproj to be renamed from default name 'Runner' (#124533) 2023-05-03 05:52:58 +00:00
xcresult_test_data.dart Log XCResult before other build issues (#100787) 2022-04-08 16:27:08 -07:00
xcresult_test.dart [flutter_tools] rename local functions with _s (#102688) 2022-04-27 16:19:07 -07:00