You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/yxfmlbb/.pub-cache/hosted/pub.flutter-io.cn/share-0.5.3/ios/Classes/SharePlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/yxfmlbb/.pub-cache/hosted/pub.flutter-io.cn/flutter_webview_plugin-0.3.0+2/ios/Classes/FlutterWebviewPlugin.m:1:
/Users/yxfmlbb/.pub-cache/hosted/pub.flutter-io.cn/flutter_webview_plugin-0.3.0+2/ios/Classes/FlutterWebviewPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not
found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
THANK YOU yxmflbb!! I've been pulling my hair out for this the last 2 days! your hotfix atleast got my flutter to work again to run the app in a simulator again!.. many thanx! This issue must be fixed.. I've tried everything up until this strange way.. but it worked.
I am getting this error now too but the posted solution does not work for me.
Launching lib/main.dart on iPhone Xʀ in debug mode...
Xcode build done. 7.2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET shared_preferences OF PROJECT Pods WITH CONFIGURATION Debug ===
In file included from /Users/me/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.3+1/ios/Classes/SharedPreferencesPlugin.m:5:
/Users/me/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.3+1/ios/Classes/SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
Exited (sigterm)
PS: I can build the android version and run on the emulator.
PPS: I got past this problem by reinstalling flutter and switching to the Beta channel.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
zoechi commentedon Nov 19, 2018
See also #16036, #16049
Merging with #16036
Pergius commentedon Dec 5, 2018
THANK YOU yxmflbb!! I've been pulling my hair out for this the last 2 days! your hotfix atleast got my flutter to work again to run the app in a simulator again!.. many thanx! This issue must be fixed.. I've tried everything up until this strange way.. but it worked.
Rassell commentedon Dec 23, 2018
Thanks @yxfmlbb!
Any idea why is this happening?
rgbinnovation commentedon Jan 27, 2019
This happens over and over. Is there any fix planned for this issue?
MiYogurt commentedon May 7, 2019
cool! 🐂🍺,兄嘚。
corymalcolmtaylor commentedon Jun 4, 2019
I am getting this error now too but the posted solution does not work for me.
Launching lib/main.dart on iPhone Xʀ in debug mode...
Xcode build done. 7.2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET shared_preferences OF PROJECT Pods WITH CONFIGURATION Debug ===
In file included from /Users/me/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.3+1/ios/Classes/SharedPreferencesPlugin.m:5:
/Users/me/dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.3+1/ios/Classes/SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
Exited (sigterm)
PS: I can build the android version and run on the emulator.
PPS: I got past this problem by reinstalling flutter and switching to the Beta channel.
rdev-software commentedon Feb 8, 2020
Any idea, when some fix is merged to BETA channel ?
github-actions commentedon Aug 23, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.