- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在 github 和 stack 上搜索了很长时间以查找类似错误后,没有一个建议的解决方案可以帮助我解决此错误。
我尝试了很多东西(有点乱):
** BUILD FAILED **
Xcode's output:
↳
/Users/flo/Mobile/we_ll_see/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module
'cloud_firestore' not found
@import cloud_firestore;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
需要一些帮助
最佳答案
这是一个非常糟糕和不幸的错误。在尝试解决这个问题几个小时后,我终于找到了解决方案。问题是,您的 Podfile 没有使用 pubspec.yaml 文件进行更新。我认为,您的 Podfile 几乎是空的:
target 'Runner' do
use_frameworks!
end
但这是个大问题。如果您尝试: $ rm Podfile 然后 $ pod init 将创建此 Podfile。
$ pod install
如果此命令的结果是:
There are 0 dependencies from the Podfile and 0 total pods installed.
您可以肯定,此解决方案有效。否则它也会起作用,但也许你应该在评论中写下你的命令行结果!
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
Now the Podfile is updating the pods you wrote down in your podspec.yaml file.
$ pod install
然后你会看到你所有的 pod 都在下载。在此之后,您可以通过调用 flutter run 或仅在您的编辑器中运行您的 Flutter 项目。
platform :osx, '10.11'
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path =
File.expand_path(File.join('..', 'Flutter', 'ephemeral',
'Flutter-
Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If
you're running pod install manually, make sure \"flutter pub
get\"
is
executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #.
{generated_xcode_build_settings_path}. Try deleting Flutter-
Generated.xcconfig, then run \"flutter pub get\""
end
require File.expand_path(File.join('packages', 'flutter_tools',
'bin', 'podhelper'), flutter_root)
flutter_macos_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_macos_pods
File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_macos_build_settings(target)
end
end
关于ios - IOS : fatal error: module 'cloud_firestore' not found 上的 flutter ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64362285/
在我的 pubspec.yaml 文件中添加 cloud_firestore 依赖项后,我遇到了这个问题。 这是控制台中的完整消息: Launching lib/main.dart on iPhone
我不能同时使用这两个 flutter 插件: cloud_firestore: ^0.9.0+2 barcode_scan: ^0.0.8 运行时出现错误: D8: Program type
每次 FireStore 发生变化时,我都会收到此错误:D/FlutterNativeView(21656): FlutterView.send called on a detached view,
我在我的 flutter 应用程序中使用 Firebase Firestore。 debug 模式下一切正常。但是,在 release 模式下,我收到以下错误。我看到了一个类似的问题,但它并没有解决我
当我将“cloud_firestore:”添加到pubspec.yaml时,出现此错误: $ flutter run Launching lib/main.dart on Infinix X627 i
如果我: 在 Android Studio 中创建默认 Flutter 项目 将 cloud_firestore: ^0.13.4+2 添加到 pubspec.yaml(不添加任何其他内容) 点击“发
我更新为cloud_firestore 0.14.0 有一些中断更改: BREAKING: The get data getter is now a data() method instead. 在更
在运行时在抖动中面临此错误。应用已成功连接到Firebase。在运行我也在使用android studio时也花费了太多时间。 //依赖 dependencies: flutter: sd
我目前正在尝试编写一个单元测试来验证是否存在一定数量的文档。 这是我到目前为止所拥有的 test('Login with no account', () async { Firestore
我正在开发用于测试 cloud_firestore 的 flutter 应用程序。在我将“cloud_firestore: ^0.9.0”添加到我的 pubspec.yaml 之前,我的应用程序运行良
我的cloud_firestore插件有问题,我之前用这个插件创建了一个应用程序,它工作正常,我下载了GoogleService-info并在xcode中将此文档放在info.plist旁边的runn
我有一个包含数组字段的文档。 如何更新数组? 在 firebase 函数中,使用 typescript ,我做了这样的事情: admin.firestore() .collection('fr
在使用 cloud_firestore 访问 Cloud Firestore 文档数据库的 Flutter 应用程序中,我在调试时在控制台中收到以下警告/错误... 4.13.0 - [Firebas
每次我尝试将 Cloud Firestore 添加到我的 Flutter 项目时都会收到此错误。我首先在我的主要项目中尝试了它,但它失败了。我在一个干净的新项目上尝试了它,每次都得到相同的结果。我已经
我刚刚开始学习 flutter 和火力基础。我正在遵循本教程[https://grokonez.com/android/how-to-integrate-flutter-firebase-tutori
我可以从集合中获取所有文档,但不知道如何从每个文档中获取集合。 我的数据库结构就像集合 -> 文档 -> 集合(带字段) -> 文档 -> 字段。 使用 blow 代码,只有我可以获得第一个文档的字段
我一直在努力弄清楚如何让 flutter 的 cloud_firestore 插件正常工作,但到目前为止,还没有一个构建完成。我每次都有很多错误...我正在尝试为 iOS iPhoneX 模拟器构建
Flutter firebase firestore 包在打开应用程序时崩溃,这是日志文件, E/MethodChannel#plugins.flutter.io/cloud_firestore(28
有没有人使用 cloud_firestore 插件成功运行过交易?我收到以下错误: E/AndroidRuntime(26208): FATAL EXCEPTION: AsyncTask #2 E/A
我遇到了这个错误,并尝试了迄今为止所有的在线解决方案,但没有任何解决方案。该项目工作正常,直到它突然向我显示该错误。 Parameter format not correct - An excepti
我是一名优秀的程序员,十分优秀!