问题描述
请帮助我!我不知道这是什么问题,但是我想这是因为我已将Flutter更新为最新版本.我尝试了,飘飘干净,rm podfile,还有更多!!但我无法解决这个问题,是因为颤振造成了问题吗?我有两天的时间试图修复它,但是没有成功.
Please help me! I don't know what is that problem but I think is since I updated to the latest version of flutter.I tried with , flutter clean, rm podfile, and more !! but I can't fix that ,is problem from flutter?I have two days trying to repair it, but I have not been successful.
*我更新了我所有的豆荚,我做了所有!但是我无法完成这项工作.我的扑扑版本是**我也在稳定频道中尝试过,但没有用.
*I update all my pods, I did all!, but I can't do that work.. (flutter doctor its ok)my flutter version is**I tried that in channel stable too, but not worked.
Flutter 1.26.0-2.0.pre.157 • channel master • https://github.com/flutter/flutter.git
Framework • revision 4b83be6c23 (9 hours ago) • 2020-12-30 02:09:03 -0500
Engine • revision 0e5a25d779
Tools • Dart 2.12.0 (build 2.12.0-179.0.dev)
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
In file included from /Users/victormanuellagunas/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/JavaScriptChannelHandler.m:5:
/Users/victormanuellagunas/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/JavaScriptChannelHandler.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
推荐答案
我遇到了同样的问题,并通过以下步骤解决了该问题:
I had the same Problem and solved it with these Steps:
-
转到此目录
/Users/victormanuellagunas/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org
删除 webview_flutter-1.0.7
文件夹
然后在项目文件夹中运行以下命令.
Then run following command in project folder.
flutter pub get
如果这不起作用,请尝试使用较低的版本,例如1.0.6
If this is not working the try to use a lower Version for example 1.0.6
这篇关于找不到'Flutter/Flutter.h'文件webview_flutter-1.0.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!