错误致命错误:找不到在iOS中运行'Flutter/Flutter.h'文件



当我在iOS中运行我的flutter应用程序时出现错误。

Xcode Version: 13

模拟器:iPhone 13 (Version 15.0)

错误:


Xcode's output:
↳
In file included from /Users/sarathc/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.0.14/ios/Classes/JavaScriptChannelHandler.m:5:
/Users/sarathc/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.0.14/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: Planning
note: Build preparation complete
note: Building targets in parallel
Could not build the application for the simulator.
Error launching application on iPhone 13.

I tried:

  1. 删除Podfile。锁,颤振/Flutter.podspec
  2. fullter pub clean

什么工作

Try

flutter cleanflutter upgradeflutter pub get

相关内容

  • 没有找到相关文章

最新更新