当我在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:
- 删除Podfile。锁,颤振/Flutter.podspec
- fullter pub clean
什么工作
Try
flutter clean
flutter upgrade
flutter pub get