• Jenn Magder's avatar
    Set compile test iOS app target version to not embed Swift runtime (#140188) · 0cd2ea96
    Jenn Magder authored
    ObjC->Swift plugin migration caused a size regression in the gallery app because the Swift runtime was also pulled in.  
    
    The gallery app minimum target version is iOS 11.0, which predates Swift ABI compatibility.  Pre iOS 12.2 apps embedded the Swift runtime since there wasn't one available to use in the OS.  
    
    Add  `FLUTTER_XCODE_IPHONEOS_DEPLOYMENT_TARGET` to the compile perf test environment, which gets translated by the tool to an Xcode build setting:
    ```
    [2023-12-14 15:52:14.797318] [STDOUT] stdout:                IPHONEOS_DEPLOYMENT_TARGET = 12.2
    ```
    
    On my machine on main
    ```
        "release_size_bytes": 43717389,
    ```
    becomes
    ```
        "release_size_bytes": 40679432,
    ```
    
    Fixes https://github.com/flutter/flutter/issues/139605
    0cd2ea96
Name
Last commit
Last update
..
bin Loading commit data...
lib Loading commit data...
test Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
pubspec.yaml Loading commit data...