使用模拟器运行应用程序时出现以下错误,但我的 pubspec.yaml 中甚至没有这个包
Pubscpec.yaml
f
lutter_launcher_icons: ^0.8.1
cupertino_icons: ^1.0.0
cloud_firestore: ^0.16.0
firebase_core: ^0.7.0
material_floating_search_bar: ^0.2.6
theme_provider: ^0.4.0+1
modal_progress_hud: ^0.1.3
flutter_switch: ^0.2.0
algolia: ^0.1.7
font_awesome_flutter: ^8.11.0
carousel_slider: ^2.3.1
flutter_onboard: ^0.0.3+1
flutter_login: ^1.0.13
firebase_auth: ^0.20.0
shared_preferences: ^0.5.12+4
like_button: ^1.0.4
salomon_bottom_bar: ^2.0.1
firebase_admob: ^0.11.0+1
sliding_up_panel: ^1.0.2
date_format: ^1.0.9
firebase_analytics: ^7.0.1
flutter_staggered_animations: ^0.1.2
auto_size_text: ^2.1.0
google_fonts: ^1.1.2
url_launcher: ^5.7.10
flutter_bounce: ^1.0.8
flutter_html: ^1.2.0
page_transition: "^1.1.7+6"
cached_network_image: ^2.5.1
错误
** BUILD FAILED **
Xcode's output:
↳
In file included from /Users/emirkutlugun/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/JavaScriptChannelHandler.m:5:
/Users/emirkutlugun/Developer/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.
Exited (sigterm)
我该如何修复它,尝试删除 podfile 并删除带有备份的 ios 文件,flutter pub 升级,还尝试手动删除 webview,它只是在使用不同的包时不断出现相同的错误。