Closed Finni123 closed 2 months ago
I tried the solution explained here: Adding this to the podfile before the last line:
post_install do |installer|
installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
end
(If you already have a post_install do |installer|
block, only paste the middle three lines into your existing block.)
After this, I can install the pods etc. successfully but I get lots of errors during build, including insert '_Nullable' if the pointer may be null
or pointer is missing nullability type specified
:
The errors look similar to the errors described here, but the solution described in that thread (Deleting the ios/Pods
folder and the XCode Derived Data folder, as well as running flutter clean
and then building the app again) did not fix it.
same issue here
I was facing similar issue, seems to solved by moving
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.24.0'
into
target 'Runner' do use_frameworks! use_modular_headers!
-->move it here
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) target 'RunnerTests' do inherit! :search_paths end end
And you shouldn't need anything between this:
flutter_ios_podfile_setup
and
target 'Runner' do
I'm sorry, I'm not sure what is wrong with your setup, it works perfectly well in FlutterFire testing environment & example app. I'd try and write a question on StackOverflow and see if you can get some help there.
I'm using FlutterFire version 1.0.0 on macOS 14.0 with cocoapods 1.15.2 and when I include this using:
Running
pod install
etc. works, but when runningflutter run
, this error appears:I've done
pod deintegrate && pod update && pod install
to make sure my specs are up to date.My Podfile looks like this:
Without the last line, everything works fine and I can build the app. When I add it, it throws some errors which I fixed by adding these three lines:
But the non-modular include error stays. How can I fix this?