Closed HeitorCand closed 2 months ago
I also encountered this when I updated Xcode due to the new ios18 simulator and installed package:firebase_messaging
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_messaging.FLTFirebaseMessagingPlugin': '/ios/Pods/Headers/Public/Firebase/Firebase.h' /.pub-cache/hosted/pub.dev/firebase_messaging-15.1.0/ios/Classes/FLTFirebaseMessagingPlugin.h:11:8
I just updated to Xcode 16 and started receiving this error when using iOS 18.
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_messaging.FLTFirebaseMessagingPlugin': '/ios/Pods/Headers/Public/Firebase/Firebase.h' /.pub-cache/hosted/pub.dev/firebase_messaging-15.1.1/ios/Classes/FLTFirebaseMessagingPlugin.h:11:8
"I encountered the same issue after updating to iOS 16 two days ago. Despite multiple attempts to resolve it, I have been unable to find a solution."
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
you are very very very great. . thank you so much. .
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
i cant find this option in my xcode 16.
I found a solution. You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
i cant find this option in my xcode 16.
You have to open your project on Xcode, you click on the runner and then on the left then on the top, you have build settings. And for the option check all and you have a magnifying glass to do the search
I found a solution. You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
i cant find this option in my xcode 16.
You have to go to Xcode => Runner => Build Settings => All and put "Allow Non-modular Includes In Framework Modules" to yes.
For me its ok!!
It's working but I have next step in this issue: note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O,
somebody something? :)
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Anyone why we have to do this?
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
thank you so much brother <3 you saved us
Change to 'Yes' But in my case, Xcode build extremely slow.
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Thank you :)
I don't seem to have this option in my XCode version 16
I don't seem to have this option in my XCode version 16
make sure to select ALL
I found a solution. You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Anyone why we have to do this?
Does anyone know why? Is there any issue with security?
Somebody can run some flutter project on iOS? I have each all some errors..
Allow Non-modular Includes In Framework Modules
You're my hero! Thanks <3
I am having the same issue on my flutter project and dont know what to do. Any help would be much appreciated.
Its work for me
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Anyone know why need to do it?
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
great this is working 👍
Allowing "Non-modular Includes in Framework Modules" will cause massive runtime issues later on. This is not a solution, you are slowly destroying your project. Do not do it! Wait until a new version of the package is ready!
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Thanks :)
I get the same error why this is closed?
ILexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_messaging.FLTFirebaseMessagingPlugin': '/Users/fikretsengul/Workspace/Quattro.Mobile.Refactor/app/ios/Pods/Headers/Public/Firebase/Firebase.h' /Users/fikretsengul/.pub-cache/hosted/pub.dev/firebase_messaging-15.1.2/ios/Classes/FLTFirebaseMessagingPlugin.h:11:8
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Well done! It worked with me after few days of search, thanks I faced this issue in while working Flutter Tabby SDK integration.
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Great job! Thank you!
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Great job! Thank you!
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
bro you saved my life, big thank
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Thank you very much, God bless you I've been battling with this for over 2 weeks now😭
This is just solved my phone
I was getting the exact error and I changed the build settings like what @DevClement suggested. But I was reading through and saw @wasilni2022 so I didn't want to take the risk. I noticed this started happening when I used Clean My Mac (I have since deleted) and it deleted my simulator settings so I added a new one with IOS 18. What I ended up doing that worked for me without changing the build settings is to run the following commands in the root of your project:
flutter clean flutter pub get cd ios pod deintegrate pod install --repo-update cd ..
I had a pod error at this point. I went to ios/Pods/Local Podspecs directory and looked at every single json file to see what's the highest IOS version on every single one. The highest on mine was "iOS": "13.0"
I went to project/iOS/Podfile and changed the platform :iOS, "xx.x" to the highest iOS values in my json files from above, which is 13.
I then ran the below command on the iOS folder of your project:
pod update Firebase/Auth
Then I navigate to the iOS folder of my project and ran:
pod install flutter build iOS
It worked! I am basing all of these on memory so I may have missed something but hopefully this helps someone out.
just happened to me
I found a solution.
You have to go to Xcode => Runner => Build Settings and put "Allow Non-modular Includes In Framework Modules" to "yes"
Thank you very much, it work
Allowing "Non-modular Includes in Framework Modules" will cause massive runtime issues later on. This is not a solution, you are slowly destroying your project. Do not do it! Wait until a new version of the package is ready!
Why and what runtime issues exactly?
Is there an existing issue for this?
Which plugins are affected?
Database
Which platforms are affected?
No response
Description
Flutter 3.24.3
Xcode 16
IOS 18
firebase_core: ^3.4.0 firebase_database: ^11.1.1 firebase_storage: ^12.2.0
Launching lib/main_dev.dart on Iphone Heitor in debug mode... Running Xcode build...
└─Compiling, linking and signing... 1.761ms Xcode build done. 38,1s Failed to build iOS app Could not build the precompiled application for the device. Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_database.FLTFirebaseDatabaseObserveStreamHandler': '/Users/heitor.candido/Documents/inteliApp/inteli/ios/Pods/Headers/Public/Firebase/Firebase.h' /Users/heitor.candido/.pub-cache/hosted/pub.dev/firebase_database-11.1.1/ios/Classes/FLTFirebaseDatabaseObserveStreamHandler.h:3:8
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_database.FLTFirebaseDatabasePlugin': '/Users/heitor.candido/Documents/inteliApp/inteli/ios/Pods/Headers/Public/Firebase/Firebase.h' /Users/heitor.candido/.pub-cache/hosted/pub.dev/firebase_database-11.1.1/ios/Classes/FLTFirebaseDatabasePlugin.h:3:8
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'firebase_database.FLTFirebaseDatabaseUtils': '/Users/heitor.candido/Documents/inteliApp/inteli/ios/Pods/Headers/Public/Firebase/Firebase.h' /Users/heitor.candido/.pub-cache/hosted/pub.dev/firebase_database-11.1.1/ios/Classes/FLTFirebaseDatabaseUtils.h:3:8
Reproducing the issue
Just add the package and build firebase_core: ^3.4.0 firebase_database: ^11.1.1 firebase_storage: ^12.2.0
Firebase Core version
3.4.0
Flutter Version
3.24.3
Relevant Log Output
Flutter dependencies
cupertino_icons: ^1.0.8 firebase_core: ^3.4.0 firebase_database: ^11.1.1 firebase_storage: ^12.2.0 flutter_dotenv: ^5.1.0
amplify_flutter: ^2.4.0 amplify_auth_cognito: ^2.4.0 amplify_authenticator: ^2.1.2 amplify_core: ^2.4.0 amplify_secure_storage: ^0.5.5 flutter_bloc: ^8.1.6 lottie: ^3.1.2 flutter_svg: ^2.0.10+1 http: ^1.2.2 hive_flutter: ^1.1.0 hive: ^2.2.3
Additional context and comments
No response