当前位置: 首页 > 知识库问答 >
问题:

致命错误:在flutter中找不到“flutter/flutter.h”文件

方玄天
2023-03-14

这就是错误-

在/users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/javascriptchannelhandler.m:5://users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/javascriptchannelhandler.h:5:9:致命错误:“flutter/flutter.h”文件找不到#import在/users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/flutterwebview.m:5://users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/flutterwebview.h:5:9:致命错误:“flutter/flutter.h”文件找不到#import在/users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/fltwebviewflutterplugin.m:5://users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/fltwebviewflutterplugin.h:5:9:致命错误:“flutter/flutter.h”文件找不到#import在/users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/fltwknavigationdelegate.m:5://users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/fltwknavigationdelegate.h:5:9:致命错误:“flutter/flutter.h”文件找不到#import在/users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/fltcookiemanager.m:5://users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/iOS/classes/fltcookiemanager.h:5:9:致命错误:“flutter/flutter.h”文件找不到#import注意:使用新的构建系统注意:并行构建目标注意:规划构建注意:构建构建描述

共有1个答案

唐声
2023-03-14

我一直都有这个错误!通常是在尝试构建我的iOS应用程序时。

通常修复它的方法是:

CD~/iOS/

RM-RF吊舱

RM podfile.lock

<编码>光盘。要(回到主颤振目录)颤振清理

如果在这些之后问题仍然存在,当试图构建你的iOS应用程序时,有时备份你的iOS文件夹,删除它,然后运行flutter,create会生成一个新的iOS文件夹,这样你就有了一个新的运行器,可以创建一个新的pod文件。

如果我的解决方案都不起作用,你也可以查看这个SO线程,因为这个问题弹出了很多。

 类似资料: