Repository: flutter
Issue: "flutter run" on iOS fails, app bundle contains build/ios/iphoneos/Flutter Gallery.app/Flutter Gallery.app/Flutter Gallery.app/Flutter Gallery.app/...
Labels: c: crash,platform-ios,tool,P3,team-ios,triaged-ios

## Steps to Reproduce

[verbose_log.txt](https://github.com/flutter/flutter/files/8157397/verbose_log.txt)


<!-- Please tell us exactly how to reproduce the problem you are running into. -->

1. Xcode build is working but failing when doing flutter run (flutter/dev/integration_tests/flutter_gallery)
2. command line: ` flutter run --verbose `


<details>

<!-- If possible, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel master, 2.11.0-0.0.pre.668, on macOS 12.2.1 21D62 darwin-x64, locale en)
    • Flutter version 2.11.0-0.0.pre.668 at /Users/jsguerrero/Documents/flutter
    • Upstream repository https://github.com/Jasguerrero/flutter.git
    • Framework revision 735f9abfe1 (4 days ago), 2022-02-24 10:44:12 -0800
    • Engine revision 1012ac4b5a
    • Dart version 2.17.0 (build 2.17.0-141.0.dev)
    • DevTools version 2.11.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/jsguerrero/Library/Android/sdk
    • Platform android-32, build-tools 32.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • 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.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • 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.10+0-b96-7281165)

[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 211.7798

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.4)
    • IntelliJ at /Applications/IntelliJ UE (stable).app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 212.5632

[✓] Connected device (3 available)
    • SlaughterhouseFivee (mobile) • 3c9d557d8cab7b328ebc7f5e8b1dc59097a3c31b • ios            • iOS 10.3.3 14G60
    • macOS (desktop)              • macos                                    • darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)                 • chrome                                   • web-javascript • Google Chrome 98.0.4758.109

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

```

</details>