我无法构建 .ipa 文件

I cannot build the .ipa file

我正在使用 Flutter 开发应用程序。
当我插入 iPhone 和 运行 项目时,一切都很好:我可以使用我的应用程序。
我想使用 flutter build ipa.
在 Apple Store 上部署我的应用程序 当我 运行 这个命令时,我得到了错误:

Error output from Xcode build:
↳
    objc[91511]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x20e856c10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1215802b8). One of the two
    will be used. Which one is undefined.
    objc[91511]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x20e856c60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x121580308). One of the two will be
    used. Which one is undefined.
    ** ARCHIVE FAILED **


Xcode's output:
↳
    /Users/aymeric/Git/Baggou/mobile/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'cloud_firestore' not found
    @import cloud_firestore;
     ~~~~~~~^~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete

Encountered error while archiving for device.

我试图分解我所有的 pods,更新它们......但没有任何效果。

我的颤振医生:

[✓] Flutter (Channel stable, 2.5.0, on macOS 11.4 20F71 darwin-arm, locale fr-FR)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Android Studio (version 4.1)
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
[✓] VS Code (version 1.54.1)
[✓] Connected device (2 available)

! Doctor found issues in 1 category.

我不知道这是否相关,但我使用的是配备 M1 芯片的 MacBook Pro。
另外,我已经用同一台机器为另一个 flutter 项目完成了这个命令,它正在运行。

如果你想知道我的依赖关系:

name: baggou
description: Ne restez plus sur la touche.

version: 0.0.40+42

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # GetX
  get: "3.26.0"
  get_storage: any

  # Firebase
  firebase_core: "^1.3.0"
  firebase_analytics: "^8.1.2"
  firebase_auth: "^1.4.1"
  google_sign_in: "5.0.4"
  cloud_firestore: "^2.2.2"
  firebase_storage: "^8.1.3"
  firebase_messaging: "^10.0.2"

  # Dependencies
  fluttertoast: ^7.1.6
  loading: ^1.0.2
  carousel_slider: "3.0.0"
  image_picker: "0.7.4"
  flutter_launcher_icons: ^0.9.0
  persistent_bottom_nav_bar: "4.0.2"
  flutter_localizations:
    sdk: flutter
  cupertino_icons: ^1.0.2
  flutter_phoenix: "1.0.0"
  csc_picker: ^0.2.5
  url_launcher: any
  introduction_screen: "2.1.0"
  smooth_star_rating: "1.1.1"

  # Google Maps
  google_maps_flutter: "2.0.10"
  google_maps_place_picker: "2.1.0-nullsafety.3"
  flutter_credit_card: ^2.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter_icons:
  image_path: "assets/baggou-icon.png"
  android: true
  ios: true

我在 Xcode 中找到了解决方案。需要设置正确的版本。