• Victoria Ashworth's avatar
    Print pretty error when xcodebuild fails due to missing simulator (#130286) · 604010e9
    Victoria Ashworth authored
    Starting in Xcode 15, the simulator is no longer included in Xcode and must be downloaded and installed separately.
    
    If you try to run flutter and the simulator is missing, you'll get an error like
    ```
    xcodebuild: error: Unable to find a destination matching the provided destination specifier:
                   		{ id:B1234A5C-67B8-901D-B2CB-FE34F56BDE78 }
    
                   	Ineligible destinations for the "Runner" scheme:
                   		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.0 is not installed. To use with Xcode, first download and install the platform }
    ```
    
    Print a pretty error to make it easier for developers to know what to do.
    
    Part 2 of https://github.com/flutter/flutter/issues/129558.
    604010e9
Name
Last commit
Last update
..
flutter Loading commit data...
flutter_driver Loading commit data...
flutter_goldens Loading commit data...
flutter_goldens_client Loading commit data...
flutter_localizations Loading commit data...
flutter_test Loading commit data...
flutter_tools Loading commit data...
flutter_web_plugins Loading commit data...
fuchsia_remote_debug_protocol Loading commit data...
integration_test Loading commit data...
analysis_options.yaml Loading commit data...