【发布时间】:2018-08-26 16:11:22
【问题描述】:
当我运行flutter run 命令时出现此错误。
我正在尝试使用map_view。
我的 Xcode 版本是 9.2
在
中包含的文件中/Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.10/ios/Classes/MapViewPlugin.m:1: /Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.10/ios/Classes/MapViewPlugin.h:1:9:致命错误:找不到“Flutter/Flutter.h”文件 #导入
生成 1 个错误。 无法为模拟器构建应用程序。 在 iPhone X 上启动应用程序时出错。
【问题讨论】:
-
我认为你应该升级到更新的 Flutter 版本
flutter channel devflutter doctorflutter update-packages --force-upgrade -
@Günter Zöchbauer 不,我仍然遇到同样的错误。仅当我添加依赖项 map_view 0.0.10 时才会发生这种情况。