未找到导入“模块‘app_settings’”

脚趾甲

我目前正在尝试使用 xcode 来使用 xcode 测试我的 flutter 应用程序。最大的问题是我的所有导入(例如 app_settings、cloud_firestore 等...)都给出了“找不到模块 ___”的错误。当我尝试运行我的 dart 代码时,我在终端中收到错误消息:

[Proj Root]/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'app_settings' not found
@import app_settings;
~~~~~~~~^~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

我尝试为 ios 运行 flutter create,(这可能会让事情变得更糟?) Flutter clean 和重新安装 pods 似乎也不起作用。我想知道导入模块是否有一些简单的东西。我使用适用于 Android 和 iOS 的模块在 android 上创建了应用程序。在让 android 版本工作后,我通过 github 在我的 mac 上拉了我的项目,最终解决了这个问题。任何指针将不胜感激,因为我完全坚持这一点。

脚趾甲

嗯不确定发生了什么,但现在似乎很好。我认为pod init正在为 podfile 初始化最少的数据。相反,我删除了 Pods 文件并执行了 flutter run 并且它使用flutter pub get.

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章