• Victoria Ashworth's avatar
    New tooling for iOS 17 physical devices (#131865) · d631b262
    Victoria Ashworth authored
    This PR includes the following changes. These changes only apply to iOS 17 physical devices.
    
    | Command | Change Description  | Changes to User Experience |
    | ------------- | ------------- | ------------- |
    | `flutter run --release` | Uses `devicectl` to install and launch application in release mode.  | No change.  |
    | `flutter run`  | Uses Xcode via automation scripting to run application in debug and profile mode. | Xcode will be opened in the background. Errors/crashes may be caught in Xcode and therefore may not show in terminal. |
    | `flutter run --use-application-binary=xxxx` | Creates temporary empty Xcode project and use Xcode to run via automation scripting in debug and profile. | Xcode will be opened in the background. Errors/crashes may be caught in Xcode and therefore may not show in terminal.  |
    | `flutter install` | Uses `devicectl` to check installed apps, install app, uninstall app.  | No change.  |
    | `flutter screenshot` | Will return error.  | Will return error.  |
    
    Other changes include:
    * Using `devicectl` to get information about the device
    * Using `idevicesyslog` and Dart VM logging for device logs
    
    Note:
    Xcode automation scripting (used in `flutter run` for debug and profile) does not work in a headless (without a UI) interface. No known workaround.
    
    Fixes https://github.com/flutter/flutter/issues/128827, https://github.com/flutter/flutter/issues/128531.
    d631b262
context_runner.dart 13 KB