Repository: flutter
Issue: Flutter Module - Failed to find snapshot: flutter_assets/kernel_blob.bin
Labels: platform-ios,tool,d: api docs,a: existing-apps,P2,team-ios,triaged-ios

Hi, currently I'm doing flutter module integration into a iOS native app. I'm following option B in this [documentation](https://docs.flutter.dev/development/add-to-app/ios/project-setup#option-b---embed-frameworks-in-xcode). Based on the documentation, I execute this command to generate the xcframework from the Flutter module: `flutter build ios-framework --no-profile --no-debug`. But, when I use the generated framework in my project, I got this error:

`Failed to find snapshot: /Users/mekari/Library/Developer/CoreSimulator/Devices/DD3AD628-B151-40A0-A4B5-65869471B348/data/Containers/Bundle/Application/CEB3B9C9-E8F7-4800-A2C5-CAEC56789816/SPMLocal.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin`

It only happen when I used release mode. How to fix this issue?

## Steps to Reproduce
1. Execute `flutter build ios-framework --no-profile --no-debug`
2. import the xcframework based on the documentation
3. run the app

## Flutter Config
[✓] Flutter (Channel stable, 3.0.0, on macOS 12.2.1 21D62 darwin-x64, locale en-ID)
    • Flutter version 3.0.0 at /Users/mekari/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee4e09cce0 (3 months ago), 2022-05-09 16:45:18 -0700
    • Engine revision d1b9a6938a
    • Dart version 2.17.0
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/mekari/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • ANDROID_HOME = /Users/mekari/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/mekari/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] VS Code (version 1.69.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.44.0

[✓] Connected device (2 available)
    • iPhone 8 (mobile) • DD3AD628-B151-40A0-A4B5-65869471B348 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
    • Chrome (web)      • chrome                               • web-javascript • Google Chrome 103.0.5060.134
    ! Error: iPhone is not connected. Xcode will continue when iPhone is connected. (code -13)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!