- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经被 flutter core 的构建错误困扰了好几天。这是 iOS 版本,到目前为止还没有尝试过 android,因为如果我不能让 iOS 运行也没关系:)
Running Xcode build...
Xcode build done. 40.0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
While building module 'firebase_core' imported from /Users/mikael.melander/Documents/development/swift-it/storyspot/flutter/ios/Runner/GeneratedPluginRegistrant.m:34:
In file included from <module-includes>:1:
In file included from /Users/mikael.melander/Documents/development/swift-it/storyspot/flutter/build/ios/Debug-iphoneos/firebase_core/firebase_core.framework/Headers/firebase_core-umbrella.h:13:
In file included from /Users/mikael.melander/Documents/development/swift-it/storyspot/flutter/build/ios/Debug-iphoneos/firebase_core/firebase_core.framework/Headers/FLTFirebaseCorePlugin.h:11:
/Users/mikael.melander/Documents/development/swift-it/storyspot/flutter/build/ios/Debug-iphoneos/firebase_core/firebase_core.framework/Headers/FLTFirebasePlugin.h:9:9: error: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin': 'Pods/FirebaseCore/FirebaseCore/Sources/Public/FirebaseCore/FirebaseCore.h' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/mikael.melander/Documents/development/swift-it/storyspot/flutter/ios/Runner/GeneratedPluginRegistrant.m:34:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebaseCorePlugin.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 precompiled application for the device.
我已经尝试过 flutter channel、master、dev 和 stable。我已经尝试尽可能多地更新插件。我已经完成了 flutter clean,删除了 pubspec.lock、podfile.lock、pods,删除了 DerivedData 等。
公共(public)规范文件:
environment:
sdk: '>=2.7.0 <3.0.0'
dependencies:
flutter:
sdk: flutter
rxdart: ^0.25.0
http: ^0.12.2
google_maps_flutter: 1.1.1
location: ^3.0.2
dio: 3.0.10
fluster: 1.1.2
flutter_cache_manager: 2.1.1
carousel_slider: 2.2.1
cached_network_image: 2.5.0
cupertino_icons: ^0.1.3
shared_preferences: ^0.5.12+4
intl: 0.16.1
multi_image_picker: 4.7.12
font_awesome_flutter: 8.8.1
get_it: 4.0.4
get: ^3.26.0
introduction_screen: ^1.0.9
smart_select: ^3.0.3
flutter_google_places: 0.2.8
shimmer: ^1.1.1
google_fonts: ^1.1.0
path_provider: ^1.6.14
progress_button: ^0.0.2
email_validator: ^1.0.5
device_info: ^0.4.2+7
audioplayers: 0.16.2
url_launcher: ^5.7.10
google_sign_in: 4.5.3
uni_links: ^0.4.0
share: ^0.6.4+5
progress_dialog: ^1.2.4
dio_http_cache: ^0.2.8
permission_handler: ^5.1.0+2
devicelocale: ^0.3.3
firebase_analytics: ^7.0.1
flutter_sound:
path: /Users/mikael.melander/Documents/development/swift-it/storyspot/tau/flutter_sound
sortedmap: ^0.4.2+1
latlong: ^0.6.1
flutter_svg: ^0.19.1
sign_in_with_apple: ^2.5.4
keyboard_visibility: 0.5.6
image_cropper: ^1.3.1
flutter_bounce: ^1.0.8
flutter_document_picker: ^4.0.1
flutter_email_sender: ^4.0.0
firebase_core: 0.7.0
dev_dependencies:
flutter_test:
sdk: flutter
我正在做 flutter_sound 的自定义分支,但没有更改任何依赖项。运行最新的 7.7.0+1
在此示例中,我添加了 firebase_core: 0.7.0,我也尝试过不使用它,但唯一匹配此确切配置的是 0.7.0,否则它是依赖项不匹配。
flutter 医生:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.1.0-11.0.pre.145, on macOS 11.2.1 20D75 darwin-x64, locale en-SE)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
[✓] Connected device (2 available)
! Doctor found issues in 1 category.
如前所述,我也尝试过稳定版和开发版。
有什么想法吗?我真的卡住了。
最佳答案
对于其他人来说,这解决了我的问题,尽管不是长期解决方案:
关于xcode - Firebase_core, flutter 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66514967/
cloud_firestore:^0.14.4firebase_auth: ^0.18.4+1smooth_star_rating: ^1.0.4地理点:^0.7.1geoflutterfire: ^
我已经被 flutter core 的构建错误困扰了好几天。这是 iOS 版本,到目前为止还没有尝试过 android,因为如果我不能让 iOS 运行也没关系:) Running Xcode buil
我在构建移动/android flutter 应用程序时遇到了这个问题,请帮助: [ +271 ms] > Configure project :firebase_core [ ] Ev
我在构建移动/android flutter 应用程序时遇到了这个问题,请帮助: [ +271 ms] > Configure project :firebase_core [ ] Ev
刚刚创建了一个新的 flutter 项目,将 google-services-info.plist 文件添加到 iOS,并将 firebase_core 添加到 pubspec.yaml。运行项目并收
我一直在尝试在 IOS 设备上运行我的 Flutter 代码。但是,我在 Framework 模块中遇到了一些关于非模块化 header 的错误。 日志: While building module
构建flutter项目时出现以下错误: *评估项目“:firebase_ml_vision”时出现问题。 Could not find the firebase_core FlutterFire pl
当使用 Firebase 插件并开始构建 Android 时,出现以下错误: ERROR: Failed to resolve: com.google.firebase:firebase-core:
错误描述 我在 Windows 桌面上运行我的 flutter 应用程序 我在 android studio 中使用主 channel 以便在桌面上运行它。 我已将 firebase 集成到我的应用程
根据 FlutterFire文档,我已经将我的 Flutter 项目更新到 Flutter 2。 我已将我的项目转换为 flutter channel 测试版 和依赖更新如下: 不幸的是,我收到以下错
当我在 Debug模式下运行我的应用程序时,它会连接到 firebase 并工作。没有问题。但是当我在 Release模式下运行它时,我收到以下错误并且应用程序根本没有打开。 MissingPlugi
调用 Firebase.initializeApp() 时出现上述错误在我的 flutter 代码中。 我已经按照这里的文档:https://firebase.flutter.dev/docs 这是我
在 iOS 上向我的 Flutter 应用添加对 Firebase 的支持时,出现以下异常: Terminating app due to uncaught exception 'com.fireba
我是一名优秀的程序员,十分优秀!