Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Flutter/Flutter.h' file not found on iOS build #27

Open
MercyOdunjo opened this issue Mar 7, 2024 · 5 comments
Open

'Flutter/Flutter.h' file not found on iOS build #27

MercyOdunjo opened this issue Mar 7, 2024 · 5 comments

Comments

@MercyOdunjo
Copy link

Whenever I try to run an iOS build of my app that has the wakelock plus package, I always get this error. What can be done to fix this?

@MustafaGaber
Copy link

Same problem
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/x/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.5/ios/Classes/messages.g.m:8:8

@falniak95
Copy link

Same here.

@gokhanvaris
Copy link

Same here

@dekapro9x
Copy link

dekapro9x commented Jul 26, 2024

Same here. I try add: flutter_additional_ios_build_settings(target)
in the "post_install do", but have new bug rvm version

@qays3
Copy link

qays3 commented Sep 27, 2024

Issue: 'Flutter/Flutter.h' file not found during iOS build

Description:
I am encountering a Lexical or Preprocessor Issue when trying to build my iOS app that uses wakelock_plus. The error states that 'Flutter/Flutter.h' file not found.

Here is the output:

Running Xcode build...
Xcode build done. 13.1s
Failed to build iOS app

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/ms/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/ios/Classes/messages.g.m:8:8

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/ms/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/ios/Classes/WakelockPlusPlugin.h:0:8

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/ms/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.6.1/darwin/video_player_avfoundation
/Sources/video_player_avfoundation/messages.g.m:11:8

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/ms/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.6.1/darwin/video_player_avfoundation
/Sources/video_player_avfoundation/include/video_player_avfoundation/FVPVideoPlayerPlugin.h:7:8

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/ms/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.6.1/darwin/video_player_avfoundation
/Sources/video_player_avfoundation/include/video_player_avfoundation/FVPDisplayLink.h:9:8

Could not build the application for the simulator.
Error launching application on iPhone 16 Pro Max.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants