u/IAlive115

make firebase working on iOs

context :
First app I'm doing every is setteled everything work perfectly fine on android i know for sure that in theory, it is supposed to work just as fine on iOs BUT needed to be sure so basically i rented a machine on macInCloud (i never used apple product in my life) setted up everything ready to test it on the simulator app

But the thing is when i did my flutter run i got this :

Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module
'firebase_messaging.FLTFirebaseMessagingPlugin':
'/Volumes/Macintosh_HD/Users/user292192/Desktop/cathild_app/ios/Pods/Headers/Public/Firebase/Firebase.h'
/Volumes/Macintosh_HD/Users/user292192/.pub-cache/hosted/pub.dev/firebase_messaging-14.7.10/ios/Classes/FLTFirebaseMessagingPlugin.h:11:8

tried many thing : going into podfile

target 'Runner' do 
  use_frameworks! :linkage => :static
  use_modular_headers!

and

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  target.build_configurations.each do |config|
    config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
    end

but in the end nothing's working

reddit.com
u/IAlive115 — 4 days ago