【发布时间】: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 上启动应用程序时出错。
【问题讨论】: