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

jst*_*toe 8 xcode ios swift flutter

我目前正在尝试使用 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
Run Code Online (Sandbox Code Playgroud)

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

jst*_*toe 2

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