我一直试图在我的 Macbook 2015 上的 IOS 模拟器上运行我的应用程序,每次我将 firestorm 库添加到我的应用程序时,我似乎都会收到错误消息。我需要这个库,因为我的数据库在 google Firestore 网站上。
Launching lib/main.dart on iPhone 12 Pro in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 84.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
warning: [CP] Unable to find matching .xcframework slice in '/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseFirestore/FirebaseFirestore/abseil.xcframework abseil framework ios-i386_x86_64-simulator ios-armv7_arm64 ios-x86_64-maccatalyst' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseFirestore/FirebaseFirestore/BoringSSL-GRPC.xcframework BoringSSL-GRPC framework ios-armv7_arm64 ios-i386_x86_64-simulator ios-x86_64-maccatalyst' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseFirestore/FirebaseFirestore/FirebaseFirestore.xcframework FirebaseFirestore framework ios-i386_x86_64-simulator ios-armv7_arm64 ios-x86_64-maccatalyst' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseFirestore/FirebaseFirestore/gRPC-C++.xcframework gRPC-C++ framework ios-armv7_arm64 ios-i386_x86_64-simulator ios-x86_64-maccatalyst' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseFirestore/FirebaseFirestore/gRPC-Core.xcframework gRPC-Core framework ios-i386_x86_64-simulator ios-armv7_arm64 ios-x86_64-maccatalyst' for the current build architectures (arm64 x86_64 i386).
warning: [CP] Unable to find matching .xcframework slice in '/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseFirestore/FirebaseFirestore/leveldb-library.xcframework leveldb-library framework ios-i386_x86_64-simulator ios-x86_64-maccatalyst ios-armv7_arm64' for the current build architectures (arm64 x86_64 i386).
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:130:20: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void GULResetLogger() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:135:29: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
aslclient getGULLoggerClient() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:139:35: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
dispatch_queue_t getGULClientQueue() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:143:27: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
BOOL getGULLoggerDebugMode() {
^
4 warnings generated.
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:130:20: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void GULResetLogger() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:135:29: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
aslclient getGULLoggerClient() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:139:35: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
dispatch_queue_t getGULClientQueue() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:143:27: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
BOOL getGULLoggerDebugMode() {
^
4 warnings generated.
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:130:20: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void GULResetLogger() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:135:29: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
aslclient getGULLoggerClient() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:139:35: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
dispatch_queue_t getGULClientQueue() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/GoogleUtilities/GoogleUtilities/Logger/GULLogger.m:143:27: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
BOOL getGULLoggerDebugMode() {
^
4 warnings generated.
2 warnings generated.
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseCore/FirebaseCore/Sources/FIRLogger.m:61:28: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void FIRLoggerInitializeASL() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseCore/FirebaseCore/Sources/FIRLogger.m:104:20: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void FIRResetLogger() {
^
2 warnings generated.
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseCore/FirebaseCore/Sources/FIRLogger.m:61:28: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void FIRLoggerInitializeASL() {
^
/Users/niltonsf/Desktop/App/loja_virtual_nnananene/ios/Pods/FirebaseCore/FirebaseCore/Sources/FIRLogger.m:104:20: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void FIRResetLogger() {
^
2 warnings generated.
In file included from /Users/niltonsf/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-3.1.6/ios/Classes/FLTFirebaseStoragePlugin.m:5:
/Users/niltonsf/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-3.1.6/ios/Classes/FLTFirebaseStoragePlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
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
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro.
这是我尝试启动时遇到的错误,有时需要 5m 才能启动应用程序。
答案 0 :(得分:0)
当我在 Firebase 中启动我的应用时,花了 15 分钟,
确保您已正确下载 CocoaPods 检查 (How to install CocoaPods?)
安装后在 Xcode 中打开您的项目并在产品选项卡中清理构建文件夹
在终端中运行 flutter clean
然后重新启动您的 IDE 并运行它!
当我遇到那个问题时它对我有用。