-
Notifications
You must be signed in to change notification settings - Fork 4k
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
firebase_core: Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found #16982
Comments
Hi @GG-themastermind, what Xcode version are you using? |
Xcode is version 16.2 |
Hi @GG-themastermind, I'm unable to reproduce this on my end. Could you try the following:
|
I have tried that numerous times already, and unfortunately it does not help. |
What else can I provide to troubleshoot this? Cause this is completely stopping our development currently. |
Please delete your ios folder, run |
I have tried that already, and that didn't help. here is my Podfile: Uncomment this line to define a global platform for your projectplatform :ios, '18.1' CocoaPods analytics sends network stats synchronously affecting flutter build latency.ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { def flutter_root File.foreach(generated_xcode_build_settings_path) do |line| require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do flutter_install_all_ios_pods File.dirname(File.realpath(FILE)) post_install do |installer| |
I'm still unable to reproduce this issue. |
This looks like it could be an issue with your Flutter installation or project setup. I would recommend trying to run 'flutter doctor' if you have not already or maybe even try reinstalling Flutter itself. |
Is there an existing issue for this?
Which plugins are affected?
Core
Which platforms are affected?
iOS
Description
I'm not able to build the IOS app.
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/gg/.pub-cache/hosted/pub.dev/firebase_core-3.10.0/ios/firebase_core/Sources/firebase_core/messages.g.m:14:8
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/gg/.pub-cache/hosted/pub.dev/firebase_core-3.10.0/ios/firebase_core/Sources/firebase_core/include/firebase_core/FLTFirebasePlugin.h:16:8
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/gg/.pub-cache/hosted/pub.dev/firebase_core-3.10.0/ios/firebase_core/Sources/firebase_core/include/firebase_core/FLTFirebaseCorePlugin.h:8:8
Could not build the application for the simulator.
Error launching application on iPhone 16 Pro.
Reproducing the issue
flutter create
flutter pub add firebase_core
uncomment the first line in the Podfile and modify to 18.1 (or any other):
platform :ios, '18.1'
flutter run
Firebase Core version
3.10.0
Flutter Version
3.27.2
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetdependencies:
flutter:
sdk: flutter
The following adds the Cupertino Icons font to your application.
Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
firebase_core: ^3.10.0
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: