flutter/packages/flutter_tools/test/general.shard
Victoria Ashworth b39604e02d
Check for simulator runtime in flutter doctor (#131795)
Redo of https://github.com/flutter/flutter/pull/130728 - code is the same as before. That PR was stuck in Google testing and then I messed up the rebase so started over.

----

Starting in Xcode 15, the simulator is no longer included in Xcode and must be downloaded and installed separately. This adds a validation to `flutter doctor` to warn when the needed simulator runtime is missing.

Validation message looks like:
```
[!] Xcode - develop for iOS and macOS (Xcode 15.0)
    ! iOS 17.0 Simulator not installed; this may be necessary for iOS and macOS development.
      To download and install the platform, open Xcode, select Xcode > Settings > Platforms,
      and click the GET button for the required platform.

      For more information, please visit:
        https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
```

It may also show an error like this when something goes wrong when checking for the simulator:
```
[!] Xcode - develop for iOS and macOS (Xcode 15.0)
    ✗ Unable to find the iPhone Simulator SDK.
```

Note: I'm unsure of in the future if the SDK and the simulator runtime will need to match the exact version or just the major. For now, it only checks against the major version.

Part 3 of https://github.com/flutter/flutter/issues/129558.
2023-08-04 17:14:06 +00:00
..
android Add an android migrator to upgrade minSdkVersions 16,17,18 to flutter.minSdkVersion (#129729) 2023-07-14 16:57:06 +00:00
base Revert "Replace rsync when unzipping artifacts on a Mac (#126703)" (#127430) 2023-05-24 19:21:05 +00:00
build_system [web] Migrate web-only initialization APIs (#129856) 2023-07-13 20:12:10 +00:00
commands Revert "[flutter_tools] Remove sound null safety flag (#123031)" (#123280) 2023-03-22 22:53:49 +00:00
custom_devices Update device filtering and introduce isConnected and connectionInterface (#121359) 2023-03-03 18:06:16 +00:00
dap Upgrade framework pub dependencies, roll engine with rolled dart sdk (#130163) 2023-07-07 13:55:35 -07:00
dart Fix dart pub cache clean command on pub.dart (#128171) 2023-06-15 20:38:04 +00:00
drive [web] stop using deprecated jsonwire web-driver protocol (#122560) 2023-03-14 18:25:23 +00:00
fuchsia Update collection-fors to prefer final (as per updated prefer_final_in_for_each) (#127511) 2023-05-26 23:34:36 +00:00
intellij fix: duplicated Intellij IDE message when running flutter doctor (#129030) 2023-07-08 00:35:53 +00:00
ios Check for simulator runtime in flutter doctor (#131795) 2023-08-04 17:14:06 +00:00
linux flutter-tool: enum cleanup (#124760) 2023-04-14 01:55:05 +00:00
macos Check for simulator runtime in flutter doctor (#131795) 2023-08-04 17:14:06 +00:00
migrations Sync analysis_options.yaml & cleanups (#117327) 2022-12-20 14:15:39 -08:00
proxied_devices Make PollingDeviceDiscovery start the initial poll faster. (#130755) 2023-07-20 05:01:24 +00:00
reporting Revert "[flutter_tools] Remove sound null safety flag (#123031)" (#123280) 2023-03-22 22:53:49 +00:00
runner Prevent crashes on range errors when selecting device (#129290) 2023-06-22 15:52:25 +00:00
test Revert "[flutter_tools] Remove sound null safety flag (#123031)" (#123280) 2023-03-22 22:53:49 +00:00
tester Update device filtering and introduce isConnected and connectionInterface (#121359) 2023-03-03 18:06:16 +00:00
vscode [tool] In flutter doctor -v, warn when Android Studio version could not be detected. (#126395) 2023-06-01 14:51:30 +00:00
web Enable unreachable_from_main lint - it is stable now!!1 (#129854) 2023-07-06 00:09:01 +00:00
windows [Windows] Address feedback for show window comment (#127998) 2023-05-31 23:42:54 +00:00
analytics_test.dart [flutter_tools] cache flutter sdk version to disk (#124558) 2023-06-15 00:20:30 +00:00
android_plugin_test.dart
application_package_test.dart Fix path name to discover debug apk on add2app builds (#117999) 2023-01-24 13:19:09 -08:00
args_test.dart [flutter_tools] Precache after channel switch (#118129) 2023-06-09 01:46:24 +00:00
artifact_updater_test.dart Enable unreachable_from_main lint - it is stable now!!1 (#129854) 2023-07-06 00:09:01 +00:00
artifacts_test.dart Fix wasm-opt location when using local_web_sdk (#127355) 2023-05-22 23:08:11 +00:00
asset_bundle_package_fonts_test.dart rename generated asset manifest file back to AssetManifest.bin (from AssetManifest.smcbin) (#128529) 2023-06-09 21:20:50 +00:00
asset_bundle_package_test.dart rename generated asset manifest file back to AssetManifest.bin (from AssetManifest.smcbin) (#128529) 2023-06-09 21:20:50 +00:00
asset_bundle_test.dart rename generated asset manifest file back to AssetManifest.bin (from AssetManifest.smcbin) (#128529) 2023-06-09 21:20:50 +00:00
asset_bundle_variant_test.dart rename generated asset manifest file back to AssetManifest.bin (from AssetManifest.smcbin) (#128529) 2023-06-09 21:20:50 +00:00
asset_test.dart [flutter_tools] re-enable web shader compilation (#118461) 2023-01-13 19:43:27 +00:00
base_utils_test.dart
build_info_test.dart tool: replace top-level functions with enum properties (#126167) 2023-05-05 19:10:07 +00:00
bundle_builder_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
cache_test.dart [tools] use Java class for all java-searching behavior (#127354) 2023-06-01 04:19:19 +00:00
channel_test.dart [flutter_tools] Suppress git output in flutter channel (#128475) 2023-06-13 19:28:06 +00:00
cmake_test.dart Reduce usage of testUsingContext (#131078) 2023-07-24 17:22:25 +00:00
cold_test.dart [flutter_tool] Adds a flag to disable Impeller (#122960) 2023-03-20 22:23:23 -07:00
common_test.dart
compile_batch_test.dart fixes to anticipate next Dart linter release (#127211) 2023-05-19 21:27:24 +00:00
compile_expression_test.dart Roll engine, patch expression evaluation (#128255) 2023-06-07 19:48:42 +00:00
compile_incremental_test.dart Platform binaries reland (#115502) 2022-12-02 14:13:40 -08:00
compile_test.dart Cleanup obsolete --compact-async compiler option (#118894) 2023-01-20 09:48:26 -08:00
config_test.dart [flutter_tools] fix Cannot delete file ENOENT from fuchsia_asset_builder (#119867) 2023-02-03 19:24:41 +00:00
convert_test.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
coverage_collector_test.dart [flutter_tools] Support coverage collection for dependencies (#129513) 2023-07-17 08:42:13 +00:00
crash_reporting_test.dart Appended period remove & Uri parsing fix. (#131293) 2023-07-31 20:42:11 +00:00
create_config_test.dart Suggest a potential valid name for the flutter project when using flutter create (#130900) 2023-07-21 19:09:25 +00:00
daemon_test.dart
dart_plugin_test.dart Don't rethrow Dart plugin registration exceptions (#122111) 2023-03-28 15:08:57 +00:00
desktop_device_test.dart [flutter_tools] remove desktop device restrictions on Impeller. (#130430) 2023-07-13 16:26:02 +00:00
devfs_test.dart Update collection-fors to prefer final (as per updated prefer_final_in_for_each) (#127511) 2023-05-26 23:34:36 +00:00
device_port_forwarder_test.dart Remove outdated ignores (#108924) 2022-08-03 23:37:05 +00:00
device_test.dart Make PollingDeviceDiscovery start the initial poll faster. (#130755) 2023-07-20 05:01:24 +00:00
devtools_launcher_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
emulator_test.dart Reland "[tool] Move Java functions to their own file" (#126577) 2023-05-20 06:29:21 +00:00
fake_process_manager_test.dart
features_test.dart Give channel descriptions in flutter channel, use branch instead of upstream for channel name (#126936) 2023-05-23 19:59:20 +00:00
flutter_manifest_test.dart
flutter_platform_test.dart Upgrade framework pub dependencies, roll engine with rolled dart sdk (#130163) 2023-07-07 13:55:35 -07:00
flutter_project_metadata_test.dart Fix typos (#121171) 2023-02-23 19:43:21 +00:00
flutter_tester_device_test.dart Fix race condition in flutter test when passing --serve-observatory (#123556) 2023-04-20 13:46:33 -04:00
flutter_validator_test.dart Give channel descriptions in flutter channel, use branch instead of upstream for channel name (#126936) 2023-05-23 19:59:20 +00:00
generate_localizations_test.dart Relax syntax for gen-l10n (#130736) 2023-07-18 13:59:48 -07:00
github_template_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
hot_test.dart Reduce usage of testUsingContext (#131078) 2023-07-24 17:22:25 +00:00
html_utils_test.dart flutter-tool, web: update HTML template serviceWorkerVersion to be const (#124826) 2023-04-14 02:01:21 +00:00
integration_test_device_test.dart Adds vmservices for getting iOS build options (#121736) 2023-03-06 22:37:55 +00:00
license_collector_test.dart
mdns_discovery_test.dart Use term wireless instead of network (#124232) 2023-04-19 19:59:11 +00:00
message_parser_test.dart Relax syntax for gen-l10n (#130736) 2023-07-18 13:59:48 -07:00
persistent_tool_state_test.dart
plugin_parsing_test.dart Allow iOS and macOS plugins to share darwin directory (#115337) 2023-01-09 10:33:03 -08:00
plugins_test.dart Add spaces after flow control statements (#126320) 2023-05-15 11:07:30 +02:00
preview_device_test.dart Reland "Remove references to Observatory (#118577)" (#121606) 2023-02-28 11:57:04 -05:00
project_file_invalidator_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
project_test.dart Upgrade compile and target sdk versions in tests and benchmarks (#131428) 2023-07-31 18:10:24 +00:00
project_validator_result_test.dart
protocol_discovery_test.dart Reland "Remove references to Observatory (#118577)" (#121606) 2023-02-28 11:57:04 -05:00
pub_dependencies_project_validator_test.dart Add info project validator status (#109169) 2022-08-09 17:59:06 +00:00
resident_devtools_handler_test.dart Reland "Fix issue where DevTools would not be immediately available when using --start-paused (#126698)" (#129368) 2023-06-28 00:16:13 +05:30
resident_runner_test.dart Use the new getIsolatePauseEvent method from VM service to check for pause event. (#128834) 2023-06-20 16:42:28 +00:00
resident_web_runner_cold_test.dart Audit covariant usage in tool (#116930) 2022-12-15 11:59:34 -08:00
resident_web_runner_test.dart [web] Migrate web-only initialization APIs (#129856) 2023-07-13 20:12:10 +00:00
run_hot_test.dart Reduce usage of testUsingContext (#131078) 2023-07-24 17:22:25 +00:00
template_test.dart Give channel descriptions in flutter channel, use branch instead of upstream for channel name (#126936) 2023-05-23 19:59:20 +00:00
terminal_handler_test.dart Enable unreachable_from_main lint - it is stable now!!1 (#129854) 2023-07-06 00:09:01 +00:00
testbed_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
time_test.dart
tracing_test.dart flutter update-packages --force-upgrade + analyzer fix (#108198) 2022-07-25 10:10:31 -07:00
update_packages_test.dart Unpin path_provider_android (#129205) 2023-06-22 21:22:49 +00:00
utils_test.dart fix(flutter_tools): findBundleFile w/multiple flavor dimensions (#127133) 2023-05-19 15:00:53 +00:00
version_test.dart ️ Add ssh://git@github.com/flutter/flutter.git as a standard remote (#131333) 2023-07-27 22:09:03 +00:00
vmservice_test.dart Add vmservice for android build options (#123034) 2023-04-18 18:16:09 +00:00
windows_version_validator_test.dart Refactoring to use ver command instead of systeminfo (#119304) 2023-01-30 19:29:13 +00:00
xcode_backend_test.dart Enable unreachable_from_main lint - it is stable now!!1 (#129854) 2023-07-06 00:09:01 +00:00