Repository: flutter
Issue: Target release_ios_bundle_flutter_assets failed: IconTreeShakerException: ConstFinder failure: Error: Error when reading 'flutter/bin/cache/artifacts/engine/darwin-x64/const_finder.dart.snapshot': No such file or directory
Labels: c: crash,platform-ios,tool,a: build,has reproducible steps,P2,team-ios,triaged-ios,found in release: 3.19,found in release: 3.22

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- Please tell us exactly how to reproduce the problem you are running into. -->

Running `flutter build ios` is not working on a new laptop setup (was working on the laptop the project was originally setup on). The project was also originally setup on a older version of flutter that was not always the stable channel. Android builds are working fine. Running the iOS app on a simulator is working as well, but `flutter build ios` fails. 

I saw some related issues like the ones mentioned here: https://github.com/flutter/flutter/issues/60851#issuecomment-690710911 but based on that my configuration looks good (and like the commenter suggests it should look) and have not been able to find any solutions or leads so far on how to fix this. 

The project/source code is located at: 
https://github.com/eggman87/imgSaus

After running `flutter build ios`, I get the below: 
```
Building com.eggman.imgsrc for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in
Xcode project: 6N5QS5F7AB
Running pod install...                                              6.2s
Running Xcode build...

Xcode build done.                                           129.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳

    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please
    address deprecated @objc inference warnings, test your code with “Use of deprecated
    Swift 3 @objc inference” logging enabled, and then disable inference by changing
    the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
    (in target 'Runner' from project 'Runner')
    warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please
    address deprecated @objc inference warnings, test your code with “Use of deprecated
    Swift 3 @objc inference” logging enabled, and then disable inference by changing
    the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
    (in target 'Runner' from project 'Runner')

```

## Logs
```
➜  imgsrc git:(master) ✗ flutter build ios
Warning: You are using these overridden dependencies:
! path_provider 1.6.18
Running "flutter pub get" in imgsrc...                              1.2s
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at

https://flutter.dev/go/android-project-migration

to migrate your project.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

^[[C
Building com.eggman.imgsrc for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in
Xcode project: 6N5QS5F7AB
Running pod install...                                              6.2s
Running Xcode build...

Xcode build done.                                           129.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳

    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please
    address deprecated @objc inference warnings, test your code with “Use of deprecated
    Swift 3 @objc inference” logging enabled, and then disable inference by changing
    the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
    (in target 'Runner' from project 'Runner')
    warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please
    address deprecated @objc inference warnings, test your code with “Use of deprecated
    Swift 3 @objc inference” logging enabled, and then disable inference by changing
    the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
    (in target 'Runner' from project 'Runner')

Encountered error while building for device.
```

<!-- If possible, paste the output of running `flutter doctor -v` here. -->

```
➜  imgsrc git:(master) flutter doctor -v
[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.7 19H2, locale en-US)
    • Flutter version 1.22.0 at /Users/mharris/Documents/dev/sdk/flutter
    • Framework revision d408d302e2 (3 days ago), 2020-09-29 11:49:17 -0700
    • Engine revision 5babba6c4d
    • Dart version 2.10.0


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/mharris/Library/Android/sdk
    • Platform android-29, build-tools 30.0.2
    • ANDROID_HOME = /Users/mharris/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.7, Build version 11E801a
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[!] VS Code (version 1.49.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • iPhone 11 (mobile) • 80464982-2F1B-4A8B-B816-952BAE8C07DD • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-7
      (simulator)

! Doctor found issues in 1 category.
```