Repository: flutter
Issue: [iOS]  'flutter build ios-framework' there is a problem with the FlutterPluginRegistrant
Labels: platform-ios,tool,a: existing-apps,P2,team-ios,triaged-ios

## Steps to Reproduce

This is the command : `flutter build ios-framework --cocoapods --output=output4iOS --no-release --no-profile`

product:

<img width="845" alt="image" src="https://user-images.githubusercontent.com/35989475/193207790-bb47a5a6-27b3-425e-bad5-5feabfb612e1.png">

Here the `FlutterPluginRegistrant`(17k) is significantly smaller than normal size.

And when i embed and link those generated frameworks into my existing application in Xcode encountered error.

## Logs

<details>
<summary>Logs</summary>

```
Undefined symbols for architecture arm64:
  "_objc_msgSend$registrarForPlugin:", referenced from:
      +[GeneratedPluginRegistrant registerWithRegistry:] in FlutterPluginRegistrant(GeneratedPluginRegistrant.o)
  "_objc_msgSend$registerWithRegistrar:", referenced from:
      +[GeneratedPluginRegistrant registerWithRegistry:] in FlutterPluginRegistrant(GeneratedPluginRegistrant.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

```
[✓] Flutter (Channel stable, 3.3.3, on macOS 12.6 21G115 darwin-arm, locale en-CN)
    • Flutter version 3.3.3 on channel stable at /Users/heybox/test/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18a827f393 (2 days ago), 2022-09-28 10:03:14 -0700
    • Engine revision 5c984c26eb
    • Dart version 2.18.2
    • DevTools version 2.15.0
    • Pub download mirror https://mirrors.tuna.tsinghua.edu.cn/dart-pub
    • Flutter download mirror https://mirrors.tuna.tsinghua.edu.cn/flutter

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/heybox/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • ANDROID_HOME = /Users/heybox/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-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A309
    • CocoaPods version 1.11.3

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] 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-7772763)

[!] Proxy Configuration
    • HTTP_PROXY is set
    ! NO_PROXY is not set

[✓] Connected device (1 available)
    • macOS (desktop) • macos • darwin-arm64 • macOS 12.6 21G115 darwin-arm

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.
```

</details>

At the moment it looks like this problem is only in my computer and I'm wondering what's wrong with my `FlutterPluginRegistrant` file.