繁体   English   中英

构建 Flutter iOS 应用时出错 - Firebase

[英]Error building Flutter iOS app - Firebase

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

我试过一个干净的,看起来是一个 Firebase 问题。

我正在使用这些版本:

依赖项:flutter:sdk:flutter 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 上启动应用程序时出错。

固定的。

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

为什么一次一个文件?

因为如果我替换了文件夹,它就没有建立。

我很高兴我的应用程序再次构建,但不知道为什么,这并没有让我高兴。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM