ios - Firebase 在 iOs pod 上颤振时出错
问题描述
我尝试在我的 iOS 模拟器上启动我的应用程序。但是我遇到了这个问题...
我已经尝试了很多东西,但它现在仍然有效。这是错误:
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Xcode build done. 492,4s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
While building module 'firebase_core' imported from /Users/macbookair/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-1.0.1/ios/Classes/FLTTransactionStreamHandler.m:6:
In file included from <module-includes>:1:
In file included from /Users/macbookair/Developer/testFirebase2/testfirebase/ios/Pods/Target Support Files/firebase_core/firebase_core-umbrella.h:13:
In file included from /Users/macbookair/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.0.1/ios/Classes/FLTFirebaseCorePlugin.h:11:
/Users/macbookair/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.0.1/ios/Classes/FLTFirebasePlugin.h:9:9: error: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin': '/Users/macbookair/Developer/testFirebase2/testfirebase/ios/Pods/Headers/Public/FirebaseCore/FirebaseCore.h' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/macbookair/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-1.0.1/ios/Classes/FLTTransactionStreamHandler.m:6:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePluginRegistry.h>
~~~~~~~^
2 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
Exited (sigterm)