【问题标题】:Error building Flutter iOS app - Firebase构建 Flutter iOS 应用程序时出错 - Firebase
【发布时间】:2021-01-10 12:18:12
【问题描述】:

我的应用不是为 iOS 模拟器构建的。

我已经尝试过清理,看起来是 Firebase 问题。

我正在使用这些版本:

依赖: 扑: sdk:颤动 firebase_core:^0.5.0 cloud_firestore: ^0.14.0+2 firebase_auth: ^0.18.0+1

In file included from /Users/ramshaw/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebasePluginRegistry.m:5:
In file included from /Users/ramshaw/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebasePluginRegistry.h:6:
/Users/ramshaw/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebasePlugin.h:123:4: error: expected a type
+ (FlutterError *_Nonnull)createFlutterErrorFromCode:(NSString *_Nonnull)code
   ^
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

无法为模拟器构建应用程序。 在 iPhone 11 上启动应用程序时出错。

【问题讨论】:

    标签: ios firebase flutter


    【解决方案1】:

    固定。

    1. 创建了一个新的 Flutter 项目
    2. 复制 pub spec.yaml 文件,检查应用正在构建。
    3. 对我的其余 lib 文件重复第 2 步,一次一个文件。

    为什么一次一个文件?

    因为如果我替换了文件夹,它就不会生成。

    我很高兴我的应用正在重新构建,但不知道为什么,这让我很不高兴。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-11
      • 2021-08-27
      • 2022-01-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-13
      相关资源
      最近更新 更多