我看到这个问题问了很多,但我找到的解决方案都没有对我有用。从本周开始,我开始收到如下错误:
url_launcher-5.7.10/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
它并不总是来自 url_launcher 包。它似乎只是循环它将从哪个包中抛出该错误。我尝试了以下事情:
似乎没有任何效果,所以我在这里有点不知所措。 Android 应用仍在构建良好。
我的 pubspec 的依赖项部分:
environment:
sdk: ">=2.2.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
admob_flutter: ^1.0.1
after_layout: ^1.0.7+2
ant_icons: ^1.0.0
app_review: ^2.0.1
apple_sign_in: ^0.1.0
auto_size_text: ^2.1.0
barcode_scan: ^2.0.2
basic_utils: ^2.6.3
bubble_tab_indicator: ^0.1.4
built_value: ^7.1.0
built_collection: ^4.3.2
chips_choice: ^2.0.1
cloud_firestore: ^0.14.1+2
dio: 3.0.10
equatable: ^1.2.5
file_picker: ^2.1.5
firebase_core: ^0.5.2+1
firebase_auth: ^0.18.3+1
firebase_analytics: ^6.2.0
firebase_in_app_messaging: ^0.2.2
flutter_bloc: ^6.1.1
flutter_chips_input: ^1.9.5
firebase_crashlytics: ^0.2.3+1
firebase_dynamic_links: ^0.6.2
firebase_messaging: 7.0.3
flutter_form_builder: 4.2.0
firebase_remote_config: 0.3.0+3
flutter_launcher_icons: ^0.8.1
flutter_keyboard_visibility: ^4.0.2
flutter_signin_button: ^1.1.0
flutter_spinkit: ^4.1.2+1
flutter_staggered_grid_view: ^0.3.3
flutter_svg: ^0.19.2+1
flutter_switch: 0.2.0
flutter_typeahead: "<=1.9.1"
flutter_webview_plugin: ^0.3.11
font_awesome_flutter: 8.11.0
get_it: ^5.0.6
google_sign_in: ^4.5.9
http: ^0.12.2
in_app_purchase: ^0.3.5+1
loading_overlay: ^0.2.1
loadmore: ^1.0.4
page_slider: ^0.0.2
path: ^1.7.0
path_provider: ^1.6.27
percent_indicator: ^2.1.9
share: 0.6.3+6
sticky_headers: ^0.1.8+1
tab_indicator_styler: ^1.0.0
transparent_image: ^1.0.0
url_launcher: ^5.7.10
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.1+1
dependency_overrides:
analyzer: ^0.41.2
intl: ^0.16.0
dev_dependencies:
flutter_driver:
sdk: flutter
test: any
build_runner: 1.11.0
built_value_generator: ^7.1.0
答案 0 :(得分:1)
我最近遇到了这个问题,这帮助我解决了这个问题。
$ rm ios/Flutter/Flutter.podspec
$ rm -fr ios/Pods
$ rm Podfile
$ flutter clean