firebase / flutterfire

πŸ”₯ A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.5k stars 3.92k forks source link

πŸ› [firebase_crashlytics] Does not compile on iOS due to non-modular headers #10621

Closed mrcsilva closed 8 months ago

mrcsilva commented 1 year ago

Bug report

Describe the bug When trying to compile my app for iOS the build process fails with the following error:

Click To Expand ``` Could not build the precompiled application for the device. Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/mario/Desktop/ecoforest_control/ios/Pods/Headers/Public/nanopb/pb.h' /Users/mario/Desktop/ecoforest_control/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:28:8 Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/mario/Desktop/ecoforest_control/ios/Pods/Headers/Public/nanopb/pb_decode.h' /Users/mario/Desktop/ecoforest_control/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:29:8 Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/mario/Desktop/ecoforest_control/ios/Pods/Headers/Public/nanopb/pb_encode.h' /Users/mario/Desktop/ecoforest_control/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:30:8 Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.sessions_nanopb': '/Users/mario/Desktop/ecoforest_control/ios/Pods/Headers/Public/nanopb/pb.h' /Users/mario/Desktop/ecoforest_control/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/Protogen/nanopb/sessions.nanopb.h:21:9 Swift Compiler Error (Xcode): Could not build Objective-C module 'FirebaseSessions' Error launching application on iPhone. ```

Expected behavior

Xcode should build the app.

Sample project

https://github.com/mrcsilva/crashlytics_error


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand ``` Doctor summary (to see all details, run flutter doctor -v): [βœ“] Flutter (Channel stable, 3.7.7, on macOS 12.6.2 21G320 darwin-x64, locale en-PT) [βœ“] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1) [βœ“] Xcode - develop for iOS and macOS (Xcode 14.2) [βœ“] Chrome - develop for the web [βœ“] Android Studio (version 2021.3) [βœ“] IntelliJ IDEA Community Edition (version 2022.3.3) [βœ“] VS Code (version 1.71.2) [βœ“] Connected device (3 available) ! Error: (null) needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode. Both devices may also need to be restarted and unlocked. (code 1) [βœ“] HTTP Host Availability β€’ No issues found! ```

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand ``` Dart SDK 2.19.4 Flutter SDK 3.7.7 ecoforest_control 2.3.7+58 dependencies: - app_tracking_transparency 2.0.3 [flutter] - collapsible 1.0.0 [flutter] - cupertino_icons 1.0.5 - device_info_plus 7.0.1 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32] - firebase_analytics 10.1.6 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_crashlytics 3.0.17 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_performance 0.9.0+16 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter] - firebase_remote_config 3.0.15 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface firebase_remote_config_web flutter] - flutter 0.0.0 [characters collection js material_color_utilities meta vector_math sky_engine] - flutter_localizations 0.0.0 [flutter intl characters clock collection js material_color_utilities meta path vector_math] - fluttericon 2.0.0 [flutter] - font_awesome_flutter 10.4.0 [flutter] - google_mobile_ads 2.3.0 [meta flutter visibility_detector] - http 0.13.5 [async http_parser meta path] - intl 0.17.0 [clock path] - ionicons 0.2.2 [flutter] - mediation_test 0.0.3 [flutter] - path 1.8.2 - provider 6.0.5 [collection flutter nested] - purchases_flutter 4.11.0 [flutter freezed_annotation json_annotation] - shared_preferences 2.0.18 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - sprintf 7.0.0 - sqflite 2.2.6 [flutter sqflite_common path] - url_launcher 6.1.10 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - weather_icons 3.0.0 [flutter] - webview_flutter 4.0.6 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview] - wifi_info_flutter 2.0.2 [flutter wifi_info_flutter_platform_interface] dev dependencies: - flutter_launcher_icons 0.12.0 [args checked_yaml cli_util image json_annotation path yaml] - flutter_lints 2.0.1 [lints] - intl_utils 2.8.2 [analyzer archive args dart_style http intl path petitparser yaml] transitive dependencies: - _fe_analyzer_shared 56.0.0 [meta] - _flutterfire_internals 1.0.18 [collection firebase_core firebase_core_platform_interface flutter meta] - analyzer 5.8.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 3.3.6 [crypto path pointycastle] - args 2.4.0 - async 2.10.0 [collection meta] - boolean_selector 2.1.1 [source_span string_scanner] - characters 1.2.1 - checked_yaml 2.0.2 [json_annotation source_span yaml] - cli_util 0.3.5 [meta path] - clock 1.1.1 - collection 1.17.0 - convert 3.1.1 [typed_data] - crypto 3.0.2 [typed_data] - dart_style 2.3.0 [analyzer args path pub_semver source_span] - device_info_plus_platform_interface 6.0.1 [flutter meta plugin_platform_interface] - fake_async 1.3.1 [clock collection] - ffi 2.0.1 - file 6.1.4 [meta path] - firebase_analytics_platform_interface 3.3.23 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.5.1+14 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - firebase_core 2.8.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_core_platform_interface 4.5.3 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.2.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_crashlytics_platform_interface 3.3.17 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_performance_platform_interface 0.1.1+35 [_flutterfire_internals firebase_core flutter plugin_platform_interface] - firebase_performance_web 0.1.1+24 [_flutterfire_internals firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins js] - firebase_remote_config_platform_interface 1.1.35 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_remote_config_web 1.1.24 [firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins js] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection js matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph] - flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math] - freezed_annotation 2.2.0 [collection json_annotation meta] - glob 2.1.1 [async collection file path string_scanner] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image 4.0.15 [archive meta xml] - js 0.6.5 [meta] - json_annotation 4.8.0 [meta] - lints 2.0.1 - matcher 0.12.13 [meta stack_trace] - material_color_utilities 0.2.0 - meta 1.8.0 - nested 1.0.0 [flutter] - package_config 2.1.0 [path] - path_provider_linux 2.1.10 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.0.6 [flutter platform plugin_platform_interface] - path_provider_windows 2.1.5 [ffi flutter path path_provider_platform_interface win32] - petitparser 5.1.0 [meta] - platform 3.1.0 - plugin_platform_interface 2.1.4 [meta] - pointycastle 3.7.0 [collection convert js] - process 4.2.4 [file path platform] - pub_semver 2.1.3 [collection meta] - shared_preferences_android 2.0.17 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.1.5 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.1.5 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.1.1 [flutter plugin_platform_interface] - shared_preferences_web 2.0.6 [flutter flutter_web_plugins shared_preferences_platform_interface] - shared_preferences_windows 2.1.5 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - sky_engine 0.0.99 - source_span 1.9.1 [collection path term_glyph] - sqflite_common 2.4.3 [synchronized path meta] - stack_trace 1.11.0 [path] - stream_channel 2.1.1 [async] - string_scanner 1.2.0 [source_span] - synchronized 3.0.1 - term_glyph 1.2.1 - test_api 0.4.16 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - typed_data 1.3.1 [collection] - url_launcher_android 6.0.25 [flutter url_launcher_platform_interface] - url_launcher_ios 6.1.2 [flutter url_launcher_platform_interface] - url_launcher_linux 3.0.4 [flutter url_launcher_platform_interface] - url_launcher_macos 3.0.4 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.1.2 [flutter plugin_platform_interface] - url_launcher_web 2.0.16 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.5 [flutter url_launcher_platform_interface] - vector_math 2.1.4 - visibility_detector 0.3.3 [flutter] - watcher 1.0.2 [async path] - webview_flutter_android 3.4.2 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 2.1.0 [flutter meta plugin_platform_interface] - webview_flutter_wkwebview 3.2.1 [flutter path webview_flutter_platform_interface] - wifi_info_flutter_platform_interface 2.0.1 [plugin_platform_interface flutter] - win32 3.1.3 [ffi] - xdg_directories 1.0.0 [meta path process] - xml 6.2.2 [collection meta petitparser] - yaml 3.1.1 [collection source_span string_scanner] ```

mrcsilva commented 1 year ago

Updated comment with project where the build process fails

medyas commented 1 year ago

Having the same issue with the latest versions

kbudulski commented 1 year ago

Yes had exactly the same issue, had to revert to previous version and lock it in pubspec

mrcsilva commented 1 year ago

Yes had exactly the same issue, had to revert to previous version and lock it in pubspec

@kbudulski Can you paste here the version you're using? I tried that but got the same error

kbudulski commented 1 year ago

Sure, here are the versions: firebase_core: 2.7.1 firebase_crashlytics: 3.0.16 firebase_analytics: 10.1.5 firebase_messaging: 14.2.6

Remember not to use ^ symbol. When you run pod install, it should download 10.3.0 versions of dependencies :)

darshankawar commented 1 year ago

@mrcsilva and everyone facing this issue.

Since the error is Swift Compiler Error (Xcode): Include of non-modular header inside framework module from the log you shared, does setting the same in Xcode -> Target -> Build Settings -> Allow Non-modular Includes in Framework Modules to Yes help to resolve ?

Screenshot 2023-03-20 at 3 50 57 PM
mrcsilva commented 1 year ago

@darshankawar Just retested and I face the same error when changing that to Yes

darshankawar commented 1 year ago

@mrcsilva Upon running the repo, I am getting below error:

Error (Xcode): Undefined symbol: _MDFInsetsFlippedHorizontally

Error (Xcode): Undefined symbol: _MDFRectFlippedHorizontally

Could not build the application for the simulator.
Error launching application on iPhone 13.
dhs@Dhss-MacBook-Pro crashlytics_error % 

From the pubspec.yaml, I see that you have other community packages, so in order to narrow down the original issue you reported, please try to have only flutterfire plugins, make sure they are on latest versions and then try to run the app again to see if you still get same error or not while building.

mrcsilva commented 1 year ago

@darshankawar Updated the repo to only have flutterfire dependencies (they were already in the latest version). I still get the same error

darshankawar commented 1 year ago

@mrcsilva So the error seems to be pointing to FirebaseSessions pods. This file in particular FIRSESnanoPBHelpers.h which seems to be coming from nanopb https://github.com/nanopb. Also, this doesn't seem specific to firebase_crashlytics I guess, because I commented the plugin in pubspec.yaml and ran the app again which gave me same error.

Maybe it is related to FirebaseSessions pod with firebase_crashlytics, so maybe check if this is useful.

mrcsilva commented 1 year ago

@mrcsilva Right, it's not a problem with firebase_crashlytics. However, that package along side with firebase_performance include the respective Firebase<library> pod. Those pods have the FirebaseSessions pod as a dependency (check under ios/Podfile.lock), that's why removing only the Crashlytics doesn't remove the error.

Since all the dependencies are automatically managed by Flutter and CocoaPods I don't see a way of using the link you provided to solve the error.

For now I'm using the firebase_core package with a fixed version (2.7.1) in order to not fetch the SDK 10.6.0 that is causing the error.

darshankawar commented 1 year ago

Thanks for the feedback. I was able to replicate the reported error upon trying to compile the app.

dmitry-kotorov commented 1 year ago

Same here

russellwheatley commented 1 year ago

I used the dependencies that you have in your project, @mrcsilva, but I used the latest versions:

dependencies:
  firebase_analytics: ^10.2.0
  firebase_core: ^2.9.0
  firebase_crashlytics: ^3.1.0
  firebase_performance: ^0.9.1
  firebase_remote_config: ^4.0.0
  flutter:
    sdk: flutter

I was able to build successfully via flutter CLI and Xcode. Do you still experience the issue with the latest versions?

mrcsilva commented 1 year ago

@russellwheatley I'm still getting the same error with the exact versions you mentioned.

I performed this before rebuilding to be sure no other versions were being used:

rm -rf Pods                                                                                                                                                                                 [15:41:26]
rm -rf Podfile.lock
rm -rf ../pubspec.lock
rm -rf ~/.pub-cache/hosted/pub.dartlang.org/
rm -rf ~/Library/Developer/Xcode/DerivedData
pod cache clean --all
pod deintegrate
flutter pub cache repair
flutter clean
flutter pub get
pod setup
pod install
pod repo update
walsha2 commented 1 year ago

Recreate Issue

Also having the same issue, using all of the absolute latest package versions:

Package Versions:

cloud_firestore: ^4.5.1
cloud_functions: ^4.1.0
firebase_analytics: ^10.2.0
firebase_auth: ^4.4.1
firebase_core: ^2.9.0
firebase_crashlytics: ^3.1.0
firebase_database: ^10.1.0
firebase_dynamic_links: ^5.1.0
firebase_messaging: ^14.4.0
firebase_storage: ^11.1.0

Swift Compiler Error:

Swift Compiler Error (Xcode): Include of non-modular header inside framework module
'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb.h'
.../app/flutter/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPB
Helpers.h:28:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module
'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb_decode.h'
.../app/flutter/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPB
Helpers.h:29:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module
'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb_encode.h'
.../app/flutter/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPB
Helpers.h:30:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module
'FirebaseSessions.sessions_nanopb': './nanopb/pb.h'
.../app/flutter/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/Protogen/nanopb/ses
sions.nanopb.h:21:9

Swift Compiler Error (Xcode): Could not build Objective-C module 'FirebaseSessions'

Encountered error while building for device.

I also ensured that full pod clean before each flutter build. This is overkill, but wanted to make sure there were no lingering pod artifacts:

cd ios
rm -rf Podfile.lock
rm -rf Pods
rm -rf pubspec.lock
pod repo update
pod cache clean --all
pod deintegrate
pod setup
pod install --repo-update

Workaround

Explicitly defining the following package versions (not ideal) prevents the compilation error. Some change in between these versions and the ones listed above is causing the compilation issue.

cloud_firestore: 4.4.3
cloud_functions: 4.0.11
firebase_analytics: 10.1.4
firebase_auth: 4.2.9
firebase_core: 2.7.0
firebase_crashlytics: 3.0.15
firebase_database: 10.0.14
firebase_dynamic_links: 5.0.15
firebase_messaging: 14.2.5
firebase_storage: 11.0.14
russellwheatley commented 1 year ago

I just created a new Flutter project and added the dependencies you mentioned, @walsha2:

cloud_firestore: ^4.5.1
cloud_functions: ^4.1.0
firebase_analytics: ^10.2.0
firebase_auth: ^4.4.1
firebase_core: ^2.9.0
firebase_crashlytics: ^3.1.0
firebase_database: ^10.1.0
firebase_dynamic_links: ^5.1.0
firebase_messaging: ^14.4.0
firebase_storage: ^11.1.0

I was able to build and run the app successfully. Here is my Podfile.lock:

Podfile.lock PODS: - abseil/algorithm (1.20211102.0): - abseil/algorithm/algorithm (= 1.20211102.0) - abseil/algorithm/container (= 1.20211102.0) - abseil/algorithm/algorithm (1.20211102.0): - abseil/base/config - abseil/algorithm/container (1.20211102.0): - abseil/algorithm/algorithm - abseil/base/core_headers - abseil/meta/type_traits - abseil/base (1.20211102.0): - abseil/base/atomic_hook (= 1.20211102.0) - abseil/base/base (= 1.20211102.0) - abseil/base/base_internal (= 1.20211102.0) - abseil/base/config (= 1.20211102.0) - abseil/base/core_headers (= 1.20211102.0) - abseil/base/dynamic_annotations (= 1.20211102.0) - abseil/base/endian (= 1.20211102.0) - abseil/base/errno_saver (= 1.20211102.0) - abseil/base/fast_type_id (= 1.20211102.0) - abseil/base/log_severity (= 1.20211102.0) - abseil/base/malloc_internal (= 1.20211102.0) - abseil/base/pretty_function (= 1.20211102.0) - abseil/base/raw_logging_internal (= 1.20211102.0) - abseil/base/spinlock_wait (= 1.20211102.0) - abseil/base/strerror (= 1.20211102.0) - abseil/base/throw_delegate (= 1.20211102.0) - abseil/base/atomic_hook (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/base (1.20211102.0): - abseil/base/atomic_hook - abseil/base/base_internal - abseil/base/config - abseil/base/core_headers - abseil/base/dynamic_annotations - abseil/base/log_severity - abseil/base/raw_logging_internal - abseil/base/spinlock_wait - abseil/meta/type_traits - abseil/base/base_internal (1.20211102.0): - abseil/base/config - abseil/meta/type_traits - abseil/base/config (1.20211102.0) - abseil/base/core_headers (1.20211102.0): - abseil/base/config - abseil/base/dynamic_annotations (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/endian (1.20211102.0): - abseil/base/base - abseil/base/config - abseil/base/core_headers - abseil/base/errno_saver (1.20211102.0): - abseil/base/config - abseil/base/fast_type_id (1.20211102.0): - abseil/base/config - abseil/base/log_severity (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/malloc_internal (1.20211102.0): - abseil/base/base - abseil/base/base_internal - abseil/base/config - abseil/base/core_headers - abseil/base/dynamic_annotations - abseil/base/raw_logging_internal - abseil/base/pretty_function (1.20211102.0) - abseil/base/raw_logging_internal (1.20211102.0): - abseil/base/atomic_hook - abseil/base/config - abseil/base/core_headers - abseil/base/log_severity - abseil/base/spinlock_wait (1.20211102.0): - abseil/base/base_internal - abseil/base/core_headers - abseil/base/errno_saver - abseil/base/strerror (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/errno_saver - abseil/base/throw_delegate (1.20211102.0): - abseil/base/config - abseil/base/raw_logging_internal - abseil/container/common (1.20211102.0): - abseil/meta/type_traits - abseil/types/optional - abseil/container/compressed_tuple (1.20211102.0): - abseil/utility/utility - abseil/container/container_memory (1.20211102.0): - abseil/base/config - abseil/memory/memory - abseil/meta/type_traits - abseil/utility/utility - abseil/container/fixed_array (1.20211102.0): - abseil/algorithm/algorithm - abseil/base/config - abseil/base/core_headers - abseil/base/dynamic_annotations - abseil/base/throw_delegate - abseil/container/compressed_tuple - abseil/memory/memory - abseil/container/flat_hash_map (1.20211102.0): - abseil/algorithm/container - abseil/container/container_memory - abseil/container/hash_function_defaults - abseil/container/raw_hash_map - abseil/memory/memory - abseil/container/hash_function_defaults (1.20211102.0): - abseil/base/config - abseil/hash/hash - abseil/strings/cord - abseil/strings/strings - abseil/container/hash_policy_traits (1.20211102.0): - abseil/meta/type_traits - abseil/container/hashtable_debug_hooks (1.20211102.0): - abseil/base/config - abseil/container/hashtablez_sampler (1.20211102.0): - abseil/base/base - abseil/base/core_headers - abseil/container/have_sse - abseil/debugging/stacktrace - abseil/memory/memory - abseil/profiling/exponential_biased - abseil/profiling/sample_recorder - abseil/synchronization/synchronization - abseil/utility/utility - abseil/container/have_sse (1.20211102.0) - abseil/container/inlined_vector (1.20211102.0): - abseil/algorithm/algorithm - abseil/base/core_headers - abseil/base/throw_delegate - abseil/container/inlined_vector_internal - abseil/memory/memory - abseil/container/inlined_vector_internal (1.20211102.0): - abseil/base/core_headers - abseil/container/compressed_tuple - abseil/memory/memory - abseil/meta/type_traits - abseil/types/span - abseil/container/layout (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/meta/type_traits - abseil/strings/strings - abseil/types/span - abseil/utility/utility - abseil/container/raw_hash_map (1.20211102.0): - abseil/base/throw_delegate - abseil/container/container_memory - abseil/container/raw_hash_set - abseil/container/raw_hash_set (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/container/common - abseil/container/compressed_tuple - abseil/container/container_memory - abseil/container/hash_policy_traits - abseil/container/hashtable_debug_hooks - abseil/container/hashtablez_sampler - abseil/container/have_sse - abseil/memory/memory - abseil/meta/type_traits - abseil/numeric/bits - abseil/utility/utility - abseil/debugging/debugging_internal (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/dynamic_annotations - abseil/base/errno_saver - abseil/base/raw_logging_internal - abseil/debugging/demangle_internal (1.20211102.0): - abseil/base/base - abseil/base/config - abseil/base/core_headers - abseil/debugging/stacktrace (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/debugging/debugging_internal - abseil/debugging/symbolize (1.20211102.0): - abseil/base/base - abseil/base/config - abseil/base/core_headers - abseil/base/dynamic_annotations - abseil/base/malloc_internal - abseil/base/raw_logging_internal - abseil/debugging/debugging_internal - abseil/debugging/demangle_internal - abseil/strings/strings - abseil/functional/bind_front (1.20211102.0): - abseil/base/base_internal - abseil/container/compressed_tuple - abseil/meta/type_traits - abseil/utility/utility - abseil/functional/function_ref (1.20211102.0): - abseil/base/base_internal - abseil/base/core_headers - abseil/meta/type_traits - abseil/hash/city (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/hash/hash (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/container/fixed_array - abseil/hash/city - abseil/hash/low_level_hash - abseil/meta/type_traits - abseil/numeric/int128 - abseil/strings/strings - abseil/types/optional - abseil/types/variant - abseil/utility/utility - abseil/hash/low_level_hash (1.20211102.0): - abseil/base/config - abseil/base/endian - abseil/numeric/bits - abseil/numeric/int128 - abseil/memory (1.20211102.0): - abseil/memory/memory (= 1.20211102.0) - abseil/memory/memory (1.20211102.0): - abseil/base/core_headers - abseil/meta/type_traits - abseil/meta (1.20211102.0): - abseil/meta/type_traits (= 1.20211102.0) - abseil/meta/type_traits (1.20211102.0): - abseil/base/config - abseil/numeric/bits (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/numeric/int128 (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/numeric/bits - abseil/numeric/representation (1.20211102.0): - abseil/base/config - abseil/profiling/exponential_biased (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/profiling/sample_recorder (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/synchronization/synchronization - abseil/time/time - abseil/random/distributions (1.20211102.0): - abseil/base/base_internal - abseil/base/config - abseil/base/core_headers - abseil/meta/type_traits - abseil/numeric/bits - abseil/random/internal/distribution_caller - abseil/random/internal/fast_uniform_bits - abseil/random/internal/fastmath - abseil/random/internal/generate_real - abseil/random/internal/iostream_state_saver - abseil/random/internal/traits - abseil/random/internal/uniform_helper - abseil/random/internal/wide_multiply - abseil/strings/strings - abseil/random/internal/distribution_caller (1.20211102.0): - abseil/base/config - abseil/base/fast_type_id - abseil/utility/utility - abseil/random/internal/fast_uniform_bits (1.20211102.0): - abseil/base/config - abseil/meta/type_traits - abseil/random/internal/fastmath (1.20211102.0): - abseil/numeric/bits - abseil/random/internal/generate_real (1.20211102.0): - abseil/meta/type_traits - abseil/numeric/bits - abseil/random/internal/fastmath - abseil/random/internal/traits - abseil/random/internal/iostream_state_saver (1.20211102.0): - abseil/meta/type_traits - abseil/numeric/int128 - abseil/random/internal/nonsecure_base (1.20211102.0): - abseil/base/core_headers - abseil/meta/type_traits - abseil/random/internal/pool_urbg - abseil/random/internal/salted_seed_seq - abseil/random/internal/seed_material - abseil/types/optional - abseil/types/span - abseil/random/internal/pcg_engine (1.20211102.0): - abseil/base/config - abseil/meta/type_traits - abseil/numeric/bits - abseil/numeric/int128 - abseil/random/internal/fastmath - abseil/random/internal/iostream_state_saver - abseil/random/internal/platform (1.20211102.0): - abseil/base/config - abseil/random/internal/pool_urbg (1.20211102.0): - abseil/base/base - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/base/raw_logging_internal - abseil/random/internal/randen - abseil/random/internal/seed_material - abseil/random/internal/traits - abseil/random/seed_gen_exception - abseil/types/span - abseil/random/internal/randen (1.20211102.0): - abseil/base/raw_logging_internal - abseil/random/internal/platform - abseil/random/internal/randen_hwaes - abseil/random/internal/randen_slow - abseil/random/internal/randen_engine (1.20211102.0): - abseil/base/endian - abseil/meta/type_traits - abseil/random/internal/iostream_state_saver - abseil/random/internal/randen - abseil/random/internal/randen_hwaes (1.20211102.0): - abseil/base/config - abseil/random/internal/platform - abseil/random/internal/randen_hwaes_impl - abseil/random/internal/randen_hwaes_impl (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/numeric/int128 - abseil/random/internal/platform - abseil/random/internal/randen_slow (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/numeric/int128 - abseil/random/internal/platform - abseil/random/internal/salted_seed_seq (1.20211102.0): - abseil/container/inlined_vector - abseil/meta/type_traits - abseil/random/internal/seed_material - abseil/types/optional - abseil/types/span - abseil/random/internal/seed_material (1.20211102.0): - abseil/base/core_headers - abseil/base/dynamic_annotations - abseil/base/raw_logging_internal - abseil/random/internal/fast_uniform_bits - abseil/strings/strings - abseil/types/optional - abseil/types/span - abseil/random/internal/traits (1.20211102.0): - abseil/base/config - abseil/random/internal/uniform_helper (1.20211102.0): - abseil/base/config - abseil/meta/type_traits - abseil/random/internal/traits - abseil/random/internal/wide_multiply (1.20211102.0): - abseil/base/config - abseil/numeric/bits - abseil/numeric/int128 - abseil/random/internal/traits - abseil/random/random (1.20211102.0): - abseil/random/distributions - abseil/random/internal/nonsecure_base - abseil/random/internal/pcg_engine - abseil/random/internal/pool_urbg - abseil/random/internal/randen_engine - abseil/random/seed_sequences - abseil/random/seed_gen_exception (1.20211102.0): - abseil/base/config - abseil/random/seed_sequences (1.20211102.0): - abseil/container/inlined_vector - abseil/random/internal/nonsecure_base - abseil/random/internal/pool_urbg - abseil/random/internal/salted_seed_seq - abseil/random/internal/seed_material - abseil/random/seed_gen_exception - abseil/types/span - abseil/status/status (1.20211102.0): - abseil/base/atomic_hook - abseil/base/config - abseil/base/core_headers - abseil/base/raw_logging_internal - abseil/container/inlined_vector - abseil/debugging/stacktrace - abseil/debugging/symbolize - abseil/functional/function_ref - abseil/strings/cord - abseil/strings/str_format - abseil/strings/strings - abseil/types/optional - abseil/status/statusor (1.20211102.0): - abseil/base/base - abseil/base/core_headers - abseil/base/raw_logging_internal - abseil/meta/type_traits - abseil/status/status - abseil/strings/strings - abseil/types/variant - abseil/utility/utility - abseil/strings/cord (1.20211102.0): - abseil/base/base - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/base/raw_logging_internal - abseil/container/fixed_array - abseil/container/inlined_vector - abseil/functional/function_ref - abseil/meta/type_traits - abseil/strings/cord_internal - abseil/strings/cordz_functions - abseil/strings/cordz_info - abseil/strings/cordz_statistics - abseil/strings/cordz_update_scope - abseil/strings/cordz_update_tracker - abseil/strings/internal - abseil/strings/str_format - abseil/strings/strings - abseil/types/optional - abseil/strings/cord_internal (1.20211102.0): - abseil/base/base_internal - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/base/raw_logging_internal - abseil/base/throw_delegate - abseil/container/compressed_tuple - abseil/container/inlined_vector - abseil/container/layout - abseil/functional/function_ref - abseil/meta/type_traits - abseil/strings/strings - abseil/types/span - abseil/strings/cordz_functions (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/raw_logging_internal - abseil/profiling/exponential_biased - abseil/strings/cordz_handle (1.20211102.0): - abseil/base/base - abseil/base/config - abseil/base/raw_logging_internal - abseil/synchronization/synchronization - abseil/strings/cordz_info (1.20211102.0): - abseil/base/base - abseil/base/config - abseil/base/core_headers - abseil/base/raw_logging_internal - abseil/container/inlined_vector - abseil/debugging/stacktrace - abseil/strings/cord_internal - abseil/strings/cordz_functions - abseil/strings/cordz_handle - abseil/strings/cordz_statistics - abseil/strings/cordz_update_tracker - abseil/synchronization/synchronization - abseil/types/span - abseil/strings/cordz_statistics (1.20211102.0): - abseil/base/config - abseil/strings/cordz_update_tracker - abseil/strings/cordz_update_scope (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/strings/cord_internal - abseil/strings/cordz_info - abseil/strings/cordz_update_tracker - abseil/strings/cordz_update_tracker (1.20211102.0): - abseil/base/config - abseil/strings/internal (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/base/raw_logging_internal - abseil/meta/type_traits - abseil/strings/str_format (1.20211102.0): - abseil/strings/str_format_internal - abseil/strings/str_format_internal (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/functional/function_ref - abseil/meta/type_traits - abseil/numeric/bits - abseil/numeric/int128 - abseil/numeric/representation - abseil/strings/strings - abseil/types/optional - abseil/types/span - abseil/strings/strings (1.20211102.0): - abseil/base/base - abseil/base/config - abseil/base/core_headers - abseil/base/endian - abseil/base/raw_logging_internal - abseil/base/throw_delegate - abseil/memory/memory - abseil/meta/type_traits - abseil/numeric/bits - abseil/numeric/int128 - abseil/strings/internal - abseil/synchronization/graphcycles_internal (1.20211102.0): - abseil/base/base - abseil/base/base_internal - abseil/base/config - abseil/base/core_headers - abseil/base/malloc_internal - abseil/base/raw_logging_internal - abseil/synchronization/kernel_timeout_internal (1.20211102.0): - abseil/base/core_headers - abseil/base/raw_logging_internal - abseil/time/time - abseil/synchronization/synchronization (1.20211102.0): - abseil/base/atomic_hook - abseil/base/base - abseil/base/base_internal - abseil/base/config - abseil/base/core_headers - abseil/base/dynamic_annotations - abseil/base/malloc_internal - abseil/base/raw_logging_internal - abseil/debugging/stacktrace - abseil/debugging/symbolize - abseil/synchronization/graphcycles_internal - abseil/synchronization/kernel_timeout_internal - abseil/time/time - abseil/time (1.20211102.0): - abseil/time/internal (= 1.20211102.0) - abseil/time/time (= 1.20211102.0) - abseil/time/internal (1.20211102.0): - abseil/time/internal/cctz (= 1.20211102.0) - abseil/time/internal/cctz (1.20211102.0): - abseil/time/internal/cctz/civil_time (= 1.20211102.0) - abseil/time/internal/cctz/time_zone (= 1.20211102.0) - abseil/time/internal/cctz/civil_time (1.20211102.0): - abseil/base/config - abseil/time/internal/cctz/time_zone (1.20211102.0): - abseil/base/config - abseil/time/internal/cctz/civil_time - abseil/time/time (1.20211102.0): - abseil/base/base - abseil/base/core_headers - abseil/base/raw_logging_internal - abseil/numeric/int128 - abseil/strings/strings - abseil/time/internal/cctz/civil_time - abseil/time/internal/cctz/time_zone - abseil/types (1.20211102.0): - abseil/types/any (= 1.20211102.0) - abseil/types/bad_any_cast (= 1.20211102.0) - abseil/types/bad_any_cast_impl (= 1.20211102.0) - abseil/types/bad_optional_access (= 1.20211102.0) - abseil/types/bad_variant_access (= 1.20211102.0) - abseil/types/compare (= 1.20211102.0) - abseil/types/optional (= 1.20211102.0) - abseil/types/span (= 1.20211102.0) - abseil/types/variant (= 1.20211102.0) - abseil/types/any (1.20211102.0): - abseil/base/config - abseil/base/core_headers - abseil/base/fast_type_id - abseil/meta/type_traits - abseil/types/bad_any_cast - abseil/utility/utility - abseil/types/bad_any_cast (1.20211102.0): - abseil/base/config - abseil/types/bad_any_cast_impl - abseil/types/bad_any_cast_impl (1.20211102.0): - abseil/base/config - abseil/base/raw_logging_internal - abseil/types/bad_optional_access (1.20211102.0): - abseil/base/config - abseil/base/raw_logging_internal - abseil/types/bad_variant_access (1.20211102.0): - abseil/base/config - abseil/base/raw_logging_internal - abseil/types/compare (1.20211102.0): - abseil/base/core_headers - abseil/meta/type_traits - abseil/types/optional (1.20211102.0): - abseil/base/base_internal - abseil/base/config - abseil/base/core_headers - abseil/memory/memory - abseil/meta/type_traits - abseil/types/bad_optional_access - abseil/utility/utility - abseil/types/span (1.20211102.0): - abseil/algorithm/algorithm - abseil/base/core_headers - abseil/base/throw_delegate - abseil/meta/type_traits - abseil/types/variant (1.20211102.0): - abseil/base/base_internal - abseil/base/config - abseil/base/core_headers - abseil/meta/type_traits - abseil/types/bad_variant_access - abseil/utility/utility - abseil/utility/utility (1.20211102.0): - abseil/base/base_internal - abseil/base/config - abseil/meta/type_traits - BoringSSL-GRPC (0.0.24): - BoringSSL-GRPC/Implementation (= 0.0.24) - BoringSSL-GRPC/Interface (= 0.0.24) - BoringSSL-GRPC/Implementation (0.0.24): - BoringSSL-GRPC/Interface (= 0.0.24) - BoringSSL-GRPC/Interface (0.0.24) - cloud_firestore (4.5.2): - Firebase/Firestore (= 10.7.0) - firebase_core - Flutter - nanopb (< 2.30910.0, >= 2.30908.0) - cloud_functions (4.1.1): - Firebase/Functions (= 10.7.0) - firebase_core - Flutter - Firebase/Analytics (10.7.0): - Firebase/Core - Firebase/Auth (10.7.0): - Firebase/CoreOnly - FirebaseAuth (~> 10.7.0) - Firebase/Core (10.7.0): - Firebase/CoreOnly - FirebaseAnalytics (~> 10.7.0) - Firebase/CoreOnly (10.7.0): - FirebaseCore (= 10.7.0) - Firebase/Crashlytics (10.7.0): - Firebase/CoreOnly - FirebaseCrashlytics (~> 10.7.0) - Firebase/Database (10.7.0): - Firebase/CoreOnly - FirebaseDatabase (~> 10.7.0) - Firebase/DynamicLinks (10.7.0): - Firebase/CoreOnly - FirebaseDynamicLinks (~> 10.7.0) - Firebase/Firestore (10.7.0): - Firebase/CoreOnly - FirebaseFirestore (~> 10.7.0) - Firebase/Functions (10.7.0): - Firebase/CoreOnly - FirebaseFunctions (~> 10.7.0) - Firebase/Messaging (10.7.0): - Firebase/CoreOnly - FirebaseMessaging (~> 10.7.0) - Firebase/Storage (10.7.0): - Firebase/CoreOnly - FirebaseStorage (~> 10.7.0) - firebase_analytics (10.2.1): - Firebase/Analytics (= 10.7.0) - firebase_core - Flutter - firebase_auth (4.4.2): - Firebase/Auth (= 10.7.0) - firebase_core - Flutter - firebase_core (2.10.0): - Firebase/CoreOnly (= 10.7.0) - Flutter - firebase_crashlytics (3.1.1): - Firebase/Crashlytics (= 10.7.0) - firebase_core - Flutter - firebase_database (10.1.1): - Firebase/Database (= 10.7.0) - firebase_core - Flutter - firebase_dynamic_links (5.1.1): - Firebase/DynamicLinks (= 10.7.0) - firebase_core - Flutter - firebase_messaging (14.4.1): - Firebase/Messaging (= 10.7.0) - firebase_core - Flutter - firebase_storage (11.1.1): - Firebase/Storage (= 10.7.0) - firebase_core - Flutter - FirebaseAnalytics (10.7.0): - FirebaseAnalytics/AdIdSupport (= 10.7.0) - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseAnalytics/AdIdSupport (10.7.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleAppMeasurement (= 10.7.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseAppCheckInterop (10.7.0) - FirebaseAuth (10.7.0): - FirebaseCore (~> 10.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/Environment (~> 7.8) - GTMSessionFetcher/Core (< 4.0, >= 2.1) - FirebaseAuthInterop (10.8.0) - FirebaseCore (10.7.0): - FirebaseCoreInternal (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/Logger (~> 7.8) - FirebaseCoreExtension (10.8.0): - FirebaseCore (~> 10.0) - FirebaseCoreInternal (10.8.0): - "GoogleUtilities/NSData+zlib (~> 7.8)" - FirebaseCrashlytics (10.7.0): - FirebaseCore (~> 10.5) - FirebaseInstallations (~> 10.0) - FirebaseSessions (~> 10.5) - GoogleDataTransport (~> 9.2) - GoogleUtilities/Environment (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (~> 2.1) - FirebaseDatabase (10.7.0): - FirebaseCore (~> 10.0) - leveldb-library (~> 1.22) - FirebaseDynamicLinks (10.7.0): - FirebaseCore (~> 10.0) - FirebaseFirestore (10.7.0): - abseil/algorithm (~> 1.20211102.0) - abseil/base (~> 1.20211102.0) - abseil/container/flat_hash_map (~> 1.20211102.0) - abseil/memory (~> 1.20211102.0) - abseil/meta (~> 1.20211102.0) - abseil/strings/strings (~> 1.20211102.0) - abseil/time (~> 1.20211102.0) - abseil/types (~> 1.20211102.0) - FirebaseCore (~> 10.0) - "gRPC-C++ (~> 1.44.0)" - leveldb-library (~> 1.22) - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseFunctions (10.7.0): - FirebaseAppCheckInterop (~> 10.0) - FirebaseAuthInterop (~> 10.0) - FirebaseCore (~> 10.0) - FirebaseCoreExtension (~> 10.0) - FirebaseMessagingInterop (~> 10.0) - FirebaseSharedSwift (~> 10.0) - GTMSessionFetcher/Core (< 4.0, >= 2.1) - FirebaseInstallations (10.8.0): - FirebaseCore (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/UserDefaults (~> 7.8) - PromisesObjC (~> 2.1) - FirebaseMessaging (10.7.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleDataTransport (~> 9.2) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/Reachability (~> 7.8) - GoogleUtilities/UserDefaults (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseMessagingInterop (10.8.0) - FirebaseSessions (10.8.0): - FirebaseCore (~> 10.5) - FirebaseCoreExtension (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleDataTransport (~> 9.2) - GoogleUtilities/Environment (~> 7.10) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesSwift (~> 2.1) - FirebaseSharedSwift (10.8.0) - FirebaseStorage (10.7.0): - FirebaseAppCheckInterop (~> 10.0) - FirebaseAuthInterop (~> 10.0) - FirebaseCore (~> 10.0) - FirebaseCoreExtension (~> 10.0) - GTMSessionFetcher/Core (< 4.0, >= 2.1) - Flutter (1.0.0) - GoogleAppMeasurement (10.7.0): - GoogleAppMeasurement/AdIdSupport (= 10.7.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleAppMeasurement/AdIdSupport (10.7.0): - GoogleAppMeasurement/WithoutAdIdSupport (= 10.7.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleAppMeasurement/WithoutAdIdSupport (10.7.0): - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleDataTransport (9.2.2): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) - GoogleUtilities/AppDelegateSwizzler (7.11.1): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - GoogleUtilities/Environment (7.11.1): - PromisesObjC (< 3.0, >= 1.2) - GoogleUtilities/Logger (7.11.1): - GoogleUtilities/Environment - GoogleUtilities/MethodSwizzler (7.11.1): - GoogleUtilities/Logger - GoogleUtilities/Network (7.11.1): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" - GoogleUtilities/Reachability - "GoogleUtilities/NSData+zlib (7.11.1)" - GoogleUtilities/Reachability (7.11.1): - GoogleUtilities/Logger - GoogleUtilities/UserDefaults (7.11.1): - GoogleUtilities/Logger - "gRPC-C++ (1.44.0)": - "gRPC-C++/Implementation (= 1.44.0)" - "gRPC-C++/Interface (= 1.44.0)" - "gRPC-C++/Implementation (1.44.0)": - abseil/base/base (= 1.20211102.0) - abseil/base/core_headers (= 1.20211102.0) - abseil/container/flat_hash_map (= 1.20211102.0) - abseil/container/inlined_vector (= 1.20211102.0) - abseil/functional/bind_front (= 1.20211102.0) - abseil/hash/hash (= 1.20211102.0) - abseil/memory/memory (= 1.20211102.0) - abseil/random/random (= 1.20211102.0) - abseil/status/status (= 1.20211102.0) - abseil/status/statusor (= 1.20211102.0) - abseil/strings/cord (= 1.20211102.0) - abseil/strings/str_format (= 1.20211102.0) - abseil/strings/strings (= 1.20211102.0) - abseil/synchronization/synchronization (= 1.20211102.0) - abseil/time/time (= 1.20211102.0) - abseil/types/optional (= 1.20211102.0) - abseil/types/variant (= 1.20211102.0) - abseil/utility/utility (= 1.20211102.0) - "gRPC-C++/Interface (= 1.44.0)" - gRPC-Core (= 1.44.0) - "gRPC-C++/Interface (1.44.0)" - gRPC-Core (1.44.0): - gRPC-Core/Implementation (= 1.44.0) - gRPC-Core/Interface (= 1.44.0) - gRPC-Core/Implementation (1.44.0): - abseil/base/base (= 1.20211102.0) - abseil/base/core_headers (= 1.20211102.0) - abseil/container/flat_hash_map (= 1.20211102.0) - abseil/container/inlined_vector (= 1.20211102.0) - abseil/functional/bind_front (= 1.20211102.0) - abseil/hash/hash (= 1.20211102.0) - abseil/memory/memory (= 1.20211102.0) - abseil/random/random (= 1.20211102.0) - abseil/status/status (= 1.20211102.0) - abseil/status/statusor (= 1.20211102.0) - abseil/strings/cord (= 1.20211102.0) - abseil/strings/str_format (= 1.20211102.0) - abseil/strings/strings (= 1.20211102.0) - abseil/synchronization/synchronization (= 1.20211102.0) - abseil/time/time (= 1.20211102.0) - abseil/types/optional (= 1.20211102.0) - abseil/types/variant (= 1.20211102.0) - abseil/utility/utility (= 1.20211102.0) - BoringSSL-GRPC (= 0.0.24) - gRPC-Core/Interface (= 1.44.0) - Libuv-gRPC (= 0.0.10) - gRPC-Core/Interface (1.44.0) - GTMSessionFetcher/Core (3.1.0) - leveldb-library (1.22.2) - Libuv-gRPC (0.0.10): - Libuv-gRPC/Implementation (= 0.0.10) - Libuv-gRPC/Interface (= 0.0.10) - Libuv-gRPC/Implementation (0.0.10): - Libuv-gRPC/Interface (= 0.0.10) - Libuv-gRPC/Interface (0.0.10) - nanopb (2.30909.0): - nanopb/decode (= 2.30909.0) - nanopb/encode (= 2.30909.0) - nanopb/decode (2.30909.0) - nanopb/encode (2.30909.0) - PromisesObjC (2.2.0) - PromisesSwift (2.2.0): - PromisesObjC (= 2.2.0) DEPENDENCIES: - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) - cloud_functions (from `.symlinks/plugins/cloud_functions/ios`) - firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`) - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) - firebase_core (from `.symlinks/plugins/firebase_core/ios`) - firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) - firebase_database (from `.symlinks/plugins/firebase_database/ios`) - firebase_dynamic_links (from `.symlinks/plugins/firebase_dynamic_links/ios`) - firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) - firebase_storage (from `.symlinks/plugins/firebase_storage/ios`) - Flutter (from `Flutter`) SPEC REPOS: trunk: - abseil - BoringSSL-GRPC - Firebase - FirebaseAnalytics - FirebaseAppCheckInterop - FirebaseAuth - FirebaseAuthInterop - FirebaseCore - FirebaseCoreExtension - FirebaseCoreInternal - FirebaseCrashlytics - FirebaseDatabase - FirebaseDynamicLinks - FirebaseFirestore - FirebaseFunctions - FirebaseInstallations - FirebaseMessaging - FirebaseMessagingInterop - FirebaseSessions - FirebaseSharedSwift - FirebaseStorage - GoogleAppMeasurement - GoogleDataTransport - GoogleUtilities - "gRPC-C++" - gRPC-Core - GTMSessionFetcher - leveldb-library - Libuv-gRPC - nanopb - PromisesObjC - PromisesSwift EXTERNAL SOURCES: cloud_firestore: :path: ".symlinks/plugins/cloud_firestore/ios" cloud_functions: :path: ".symlinks/plugins/cloud_functions/ios" firebase_analytics: :path: ".symlinks/plugins/firebase_analytics/ios" firebase_auth: :path: ".symlinks/plugins/firebase_auth/ios" firebase_core: :path: ".symlinks/plugins/firebase_core/ios" firebase_crashlytics: :path: ".symlinks/plugins/firebase_crashlytics/ios" firebase_database: :path: ".symlinks/plugins/firebase_database/ios" firebase_dynamic_links: :path: ".symlinks/plugins/firebase_dynamic_links/ios" firebase_messaging: :path: ".symlinks/plugins/firebase_messaging/ios" firebase_storage: :path: ".symlinks/plugins/firebase_storage/ios" Flutter: :path: Flutter SPEC CHECKSUMS: abseil: ebe5b5529fb05d93a8bdb7951607be08b7fa71bc BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 cloud_firestore: 48bc9a6ed3d534417f4f5c095c30e9374c1101bc cloud_functions: 0910b8883a53ed2116889cfa9a00179ec69a5003 Firebase: 0219acf760880eeec8ce479895bd7767466d9f81 firebase_analytics: e8e294333de66e5429d4aac365966281b4dbfb7d firebase_auth: 98778cde4127b34d2d006f8bd049d3a8131f37bd firebase_core: 18d44f087248303a4a8f05d0099a000c46e3c77a firebase_crashlytics: 6c15c2f507d82746dd62214964acf56146eab53f firebase_database: 825e72f4f501264771d90a780dc1b3711f892816 firebase_dynamic_links: 464b974eeb7a5b4b7c970062c49a3e39ff924f47 firebase_messaging: 90b11d16c537444a39e50b818ebe1a51ec0e38c2 firebase_storage: caf39437ad5db21ea75fd3dca77a21cd9178d158 FirebaseAnalytics: f8133442ee6f8512e28ff19e62ce15398bfaeace FirebaseAppCheckInterop: 8e907eea79958960a8bd2058e067f31e03a7914b FirebaseAuth: dd64c01631df724b09f33e584625775c52f7d71f FirebaseAuthInterop: 5ea2a68b83f5222f6d8688ffc3a49a9e92bb3eba FirebaseCore: e317665b9d744727a97e623edbbed009320afdd7 FirebaseCoreExtension: d815fd6fec8bb3a0940bc02dd5e3e641ea7229d8 FirebaseCoreInternal: fa2899eb1f340054858d289e5a0fb935a0a74e52 FirebaseCrashlytics: 35fdd1a433b31e28adcf5c8933f4c526691a1e0b FirebaseDatabase: 06195bac336b5e4c893ec04a111631a4cdb00178 FirebaseDynamicLinks: 16a8fae3697fba66fed7a1d646fe59f30d42aa31 FirebaseFirestore: 3963a6edd1c84b4748dab3e2c62624a29d03eca1 FirebaseFunctions: 6cede311274dd1e13ea4950fc9e57221d3538386 FirebaseInstallations: b2a05a3fe707df764345d68685534d07d0664af3 FirebaseMessaging: ac9062bcc35ed56e15a0241d8fd317022499baf8 FirebaseMessagingInterop: dae5120fc708905f529dda1f6d377ae51ce51246 FirebaseSessions: d4e22e13e5523e58fcd625671c59bed7ccee8736 FirebaseSharedSwift: e9e23efae965af553a8d1524efa3f64b5ef7ef0a FirebaseStorage: 4841efa304543e1f9e4ca116c559c7a1ea2a9d0f Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 GoogleAppMeasurement: fe17c92a32207dd5cdd4e8d742767f2da74857f6 GoogleDataTransport: 8378d1fa8ac49753ea6ce70d65a7cb70ce5f66e6 GoogleUtilities: 9aa0ad5a7bc171f8bae016300bfcfa3fb8425749 "gRPC-C++": 9675f953ace2b3de7c506039d77be1f2e77a8db2 gRPC-Core: 943e491cb0d45598b0b0eb9e910c88080369290b GTMSessionFetcher: c9e714f7eec91a55641e2bab9f45fd83a219b882 leveldb-library: f03246171cce0484482ec291f88b6d563699ee06 Libuv-gRPC: 55e51798e14ef436ad9bc45d12d43b77b49df378 nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431 PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef PromisesSwift: cf9eb58666a43bbe007302226e510b16c1e10959 PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3 COCOAPODS: 1.11.3

I wonder if it is something to do with the nanopb library πŸ€”

walsha2 commented 1 year ago

Issue Confirmation

@russellwheatley Thanks for following up, I went head and did the same thing in a new Flutter project. I noticed that in the time I posted my comment and you tested, all the firebase packages were updated (today). Sadly, this did not fix the issue. It does seem to be nanopb that is causing the Swift compiler to error.

Here were my steps. From a fresh flutter create project:

flutter create nanopb_bug_app

Add the latest firebase dependencies (as of today, April 18, 2023):

cloud_firestore: ^4.5.2
cloud_functions: ^4.1.1
firebase_analytics: ^10.2.1
firebase_auth: ^4.4.2
firebase_core: ^2.10.0
firebase_crashlytics: ^3.1.1
firebase_database: ^10.1.1
firebase_dynamic_links: ^5.1.1
firebase_messaging: ^14.4.1
firebase_storage: ^11.1.1

Build the app

flutter build ios

Error:

Swift Compiler Error (Xcode): Include of non-modular header inside framework module
'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb.h'
/nanopb_bug_app/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBH
elpers.h:28:8
...

I even tried to enable CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES in Xcode and that did not work either, unfortunately.

headers

Environment

Per the issue thread, @russellwheatley it looks like you have tried twice with various package versions and did not run into issues. However, @darshankawar was able to reproduce.

At this point it could be related to the development environment? This issue is tricky. Here are all of the relevant environment related details regarding hardware and software versions on my end. This seems to reliably reproduce the issue for me with any of the recent firebase package versions (versions after https://github.com/firebase/flutterfire/issues/10621#issuecomment-1509984049 - "Workaround").

# Mac (Apple MacBook Pro "M1 Pro")
>>> sysctl hw.model
hw.model: MacBookPro18,1
# MacOS version (Ventura)
>>> sw_vers -productVersion
13.3.1
# Xcode version
>>> xcodebuild -version
Xcode 14.3
Build version 14E222b
# CocoaPods version
>>> pod --version
1.12.0
# Flutter version
>>> flutter --version
Flutter 3.7.11 β€’ channel stable β€’ https://github.com/flutter/flutter.git
Framework β€’ revision f72efea43c (7 days ago) β€’ 2023-04-11 11:57:21 -0700
Engine β€’ revision 1a65d409c7
Tools β€’ Dart 2.19.6 β€’ DevTools 2.20.1
russellwheatley commented 1 year ago

My environment: Apple M1 Max macbook Flutter (Channel stable, 3.7.7, on macOS 12.5.1 21G83 darwin-arm64 Cocoapods: 1.11.3 Xcode: 14.2

It is worth checking the diff in your Podfile.lock with mine to be sure they are the same.

walsha2 commented 1 year ago

It is worth checking the diff in your Podfile.lock with mine to be sure they are the same.

It was a little hard to actually run a diff with your Podfile.lock because the full file was not raw uploaded so the formatting was off. I did spot check and it looked like they were all the same versions. The PODFILE CHECKSUM values were exactly the same.

Here is my Podfile.lock as a txt file.

google-oss-bot commented 1 year ago

Hey @mrcsilva. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

itielMaimon commented 1 year ago

Same issue here, using these versions building on Codemagic:

firebase_core: ^2.9.0
firebase_analytics: ^10.2.0
firebase_crashlytics: ^3.1.0
firebase_performance: ^0.9.1

Log:

Running pod install...                                             42.9s
Upgrading Pods-Runner-frameworks.sh
Running Xcode build...                                          
Xcode archive done.                                         23.6s
Failed to build iOS app
Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/builder/clone/ios/Pods/Headers/Public/nanopb/pb.h'
/Users/builder/clone/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:28:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/builder/clone/ios/Pods/Headers/Public/nanopb/pb_decode.h'
/Users/builder/clone/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:29:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/builder/clone/ios/Pods/Headers/Public/nanopb/pb_encode.h'
/Users/builder/clone/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:30:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.sessions_nanopb': '/Users/builder/clone/ios/Pods/Headers/Public/nanopb/pb.h'
/Users/builder/clone/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/Protogen/nanopb/sessions.nanopb.h:21:9

Swift Compiler Error (Xcode): Could not build Objective-C module 'FirebaseSessions'

Encountered error while archiving for device.

Build failed :|
Failed to build for iOS

Current configuration: Flutter channel: stable Mode: release Xcode version: 14.3 Machine: Mac mini M1

itielMaimon commented 1 year ago

Same issue here, using these versions building on Codemagic:

firebase_core: ^2.9.0
firebase_analytics: ^10.2.0
firebase_crashlytics: ^3.1.0
firebase_performance: ^0.9.1

Log:

Running pod install...                                             42.9s
Upgrading Pods-Runner-frameworks.sh
Running Xcode build...                                          
Xcode archive done.                                         23.6s
Failed to build iOS app
Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/builder/clone/ios/Pods/Headers/Public/nanopb/pb.h'
/Users/builder/clone/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:28:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/builder/clone/ios/Pods/Headers/Public/nanopb/pb_decode.h'
/Users/builder/clone/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:29:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': '/Users/builder/clone/ios/Pods/Headers/Public/nanopb/pb_encode.h'
/Users/builder/clone/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:30:8

Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.sessions_nanopb': '/Users/builder/clone/ios/Pods/Headers/Public/nanopb/pb.h'
/Users/builder/clone/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/Protogen/nanopb/sessions.nanopb.h:21:9

Swift Compiler Error (Xcode): Could not build Objective-C module 'FirebaseSessions'

Encountered error while archiving for device.

Build failed :|
Failed to build for iOS

Current configuration: Flutter channel: stable Mode: release Xcode version: 14.3 Machine: Mac mini M1

Commenting out the platform :ios, '11.0' line in Podfile solved the issue:

# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'

Not sure why though.

walsha2 commented 1 year ago

@russellwheatley Still running into this same issue with the most recent package versions as of this comment.

Again, completely fresh repo: flutter create nanopb_bug_app with only the following package dependencies (on top of what is in the pubspec.yaml default)

cloud_firestore: ^4.6.0
cloud_functions: ^4.2.0
firebase_analytics: ^10.3.0
firebase_auth: ^4.5.0
firebase_core: ^2.11.0
firebase_crashlytics: ^3.2.0
firebase_database: ^10.1.2
firebase_dynamic_links: ^5.2.0
firebase_messaging: ^14.5.0
firebase_storage: ^11.1.2

Once those deps are added: flutter build ios - the error is encountered during Xcode build step:

Swift Compiler Error (Xcode): Include of non-modular header inside framework module
'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb.h'
/Desktop/nanopb_bug_app/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoP
BHelpers.h:28:8
funyx commented 1 year ago

i'm able to build (osx M1)

  firebase_core: ^2.11.0
  firebase_auth: ^4.5.0
  cloud_firestore: ^4.6.0
  firebase_analytics: ^10.3.0

by adding.. ios/Podfile:L30

target 'Runner' do
+  pod 'Firebase', :modular_headers => true
+  pod 'FirebaseCore', :modular_headers => true
+  pod 'FirebaseCoreInternal', :modular_headers => true
+  pod 'GoogleUtilities', :modular_headers => true

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
google-oss-bot commented 1 year ago

Hey @mrcsilva. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

rocboronat commented 1 year ago

Having the same issue with the latest Firebase versions 😒 Please don't close this issue, @google-oss-bot πŸ€–

russellwheatley commented 1 year ago

@mrcsilva does this solve your problem?

target 'Runner' do
+  pod 'Firebase', :modular_headers => true
+  pod 'FirebaseCore', :modular_headers => true
+  pod 'FirebaseCoreInternal', :modular_headers => true
+  pod 'GoogleUtilities', :modular_headers => true

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
triay0 commented 1 year ago

same issue here, please help

@mrcsilva does this solve your problem?

target 'Runner' do
+  pod 'Firebase', :modular_headers => true
+  pod 'FirebaseCore', :modular_headers => true
+  pod 'FirebaseCoreInternal', :modular_headers => true
+  pod 'GoogleUtilities', :modular_headers => true

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

not working for me

mrcsilva commented 1 year ago

@russellwheatley

pod 'Firebase', :modular_headers => true
+  pod 'FirebaseCore', :modular_headers => true
+  pod 'FirebaseCoreInternal', :modular_headers => true
+  pod 'GoogleUtilities', :modular_headers => true

Added this to the podfile and updated the packages to the latest versions but I'm still having the same error when building

  firebase_core: ^2.13.0
  firebase_crashlytics: ^3.3.1
  firebase_performance: ^0.9.2+1
  firebase_analytics: ^10.4.1
  firebase_remote_config: ^4.2.1
walsha2 commented 1 year ago

Recap and Recreate

@russellwheatley just echoing what @mrcsilva said - have been tracking this Github issue for a while and with every new firebase release I hope that it resolves the issue, but no such luck.

To reiterate, this is easily reproducible for me from a fresh repo:

flutter create -i swift --platforms ios modular_headers

Then I incrementally added dependencies one by one (in the following order), until the Xcode build fails:

  firebase_core: ^2.13.0
  firebase_crashlytics: ^3.3.1

That's it... as soon as I added firebase_crashlytics (any of the recent versions) the error crops up. Again, these are the only two dependencies in a fresh application, aside from whatever else is in the stock pubspec.yaml file. No other changes were made to the stock flutter create application aside from adding those two deps.

Swift Compiler Error (Xcode): Include of non-modular header inside framework module
'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb.h'
/Users/user/Desktop/modular_headers/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSE
SNanoPBHelpers.h:28:8

....

Swift Compiler Error (Xcode): Could not build Objective-C module 'FirebaseSessions'

FWIW, I dont actually think it is related to firebase_crashlytics, that just happens to be a dependency that requires the FirebaseSessions pod. Im sure some other firebase dependency may cause this as well since they likely require FirebaseSessions. I did not have time to test all the permutations.

Feedback

Since this is so easily reproducible and you have not been able to reproduce it @russellwheatley, is there some other MacOS or XCode thing we need to dig into? I know you and I shared our system config information prior but nothing looked like a smoking gun. Summarized again below, M1 Macbook Pro running MacOS 13.4:

>>> swift --version
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
Target: arm64-apple-macosx13.0

>>> xcodebuild -version
Xcode 14.3
Build version 14E222b

>> pod --version
1.12.1

What could possibly be so different in your setup than mine or some of the other users who have come across this issue? Are there any global Swift build flags that you may have configured? Is there anything we can do to help this issue along? All of the solutions here have not worked and seem to be a little unrelated to the core issue.

I have done all of the extra clean operations like deleting DerivedData, the pod deintegrate and cache clean steps, dart cache clean, full repo git clean. Just to really make sure. Nothings seems to work and further points to an odd package problem not an isolated user configuration issue.

Also - it does look like @darshankawar was able to reproduce this (https://github.com/firebase/flutterfire/issues/10621#issuecomment-1477652908), but I dont think he has chimed in since.

russellwheatley commented 1 year ago

Hi @walsha2 - your instructions to reproduce are different from your initial comment. It seems I have to run:

flutter create -i swift --platforms ios modular_headers

I'll circle back to this at some point, but maybe this is it

walsha2 commented 1 year ago

@russellwheatley same exact issue without -i swift, I just tested (see below). I dont think the way the app was created is the problem. I was just trying to be very explicit in this recent example. It should be functionally the same as the initial comment.

flutter create --platforms ios modular_headers_basic

Also, per the Flutter docs, specifying -i swift is the recommended setting. And --platforms ios simply denotes to only build the ios target related files.

-i, --ios-language           The language to use for iOS-specific code, either Objective-C (legacy) or Swift
                             (recommended).

Thanks for looking into it!

russellwheatley commented 1 year ago

I followed your steps, I could not recreate I'm afraid.

I do have different versions to yourself πŸ€”. Let me know if changing any of these makes a difference, we can narrow down the search to some specific tool that will possibly allow me to recreate the issue.

>>> swift --version
swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
Target: arm64-apple-macosx12.0

>>> xcodebuild -version
Xcode 14.2
Build version 14C18

>> pod --version
1.11.3
walsha2 commented 1 year ago

@russellwheatley

Xcode 14.2 includes Swift 5.7 and SDKs for iOS 16.2, iPadOS 16.2, tvOS 16.1, watchOS 9.1, and macOS Ventura 13.1. The Xcode 14.2 release supports on-device debugging in iOS 11 and later, tvOS 11 and later, and watchOS 4 and later. Xcode 14.2 requires a Mac running macOS Monterey 12.5 or later. - Release Notes

I downloaded an alternate Xcode image and downgraded to Xcode 14.2 because that is the version you have and the one that is bundled with Swift 5.7

>>> sudo xcode-select --switch /Applications/Xcode14.2.app 

>>> xcodebuild -version

Xcode 14.2
Build version 14C18

>>> swift --version

swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
Target: arm64-apple-macosx13.0

I even changed the cocoapods version to match:

>>> pod --version

1.11.3

After I made these changes, I tried to rebuild using the same exact project. No luck, sadly. Same error.

Aside from downgrading my entire MacOS 13.4 version (which I am not going to do) to match your older version, I am not sure what else I can do to throughly address any user/machine inconsistencies.

JulienDev commented 1 year ago

I've just wasted hours on this error, very annoying. I was defining some pods manually like that :

pod 'GoogleMobileAdsMediationFacebook'
pod 'GoogleMobileAdsMediationAppLovin'

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

Moving the pods definition just before flutter_install_all_ios_pods solved the issue

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  pod 'GoogleMobileAdsMediationFacebook'
  pod 'GoogleMobileAdsMediationAppLovin'

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

I really hope it will help some of you :)

google-oss-bot commented 1 year ago

Hey @mrcsilva. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

Okladnoj commented 1 year ago
Error logs ```shell Launching lib/main.dart on iPad (Dmytrij) in debug mode... Disabling deprecated bitcode Xcode build setting. See https://github.com/flutter/flutter/issues/107887 for additional details. Upgrading project.pbxproj Automatically signing iOS for device deployment using specified development team in Xcode project: QN4KSWVM8M Xcode build done. 27,2s Failed to build iOS app Could not build the precompiled application for the device. Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb.h' /Users/okji/work/freelance/blowy/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:28:8 Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb_decode.h' /Users/okji/work/freelance/blowy/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:29:8 Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.FIRSESNanoPBHelpers': './nanopb/pb_encode.h' /Users/okji/work/freelance/blowy/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/NanoPB/FIRSESNanoPBHelpers.h:30:8 Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'FirebaseSessions.sessions_nanopb': './nanopb/pb.h' /Users/okji/work/freelance/blowy/ios/Pods/FirebaseSessions/FirebaseSessions/SourcesObjC/Protogen/nanopb/sessions.nanopb.h:21:9 Swift Compiler Error (Xcode): Could not build Objective-C module 'FirebaseSessions' Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code Error launching application on iPad (Dmytrij). Exited (1). ```
flutter pub deps -- --style=compact ```shell Dart SDK 3.0.5 Flutter SDK 3.10.5 *** 1.0.33+58 dependencies: - app_tracking_transparency 2.0.4 [flutter] - apphud 2.2.15 [flutter json_annotation collection] - appsflyer_sdk 6.11.1 [flutter] - auto_route 7.4.0 [flutter path collection meta] - auto_size_text 3.0.0 [flutter] - collection 1.17.1 - crypto 3.0.3 [typed_data] - device_info_plus 9.0.2 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32 win32_registry] - dio 5.2.1+1 [async http_parser meta path] - dropdown_search 5.0.6 [flutter] - equatable 2.0.5 [collection meta] - file_picker 5.3.2 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32] - firebase_analytics 10.4.3 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_core 2.14.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 3.3.3 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_messaging 14.6.3 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - flutter 0.0.0 [characters collection js material_color_utilities meta vector_math sky_engine] - flutter_bloc 8.1.3 [bloc flutter provider] - flutter_echarts 2.4.0 [flutter webview_flutter] - flutter_facebook_auth 6.0.0 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web facebook_auth_desktop] - flutter_local_notifications 14.1.1 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone] - flutter_localizations 0.0.0 [flutter intl characters clock collection js material_color_utilities meta path vector_math] - flutter_svg 2.0.7 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler] - freezed_annotation 2.2.0 [collection json_annotation meta] - get_it 7.6.0 [async collection] - google_maps_cluster_manager 3.0.0+1 [flutter google_maps_flutter_platform_interface] - google_maps_flutter 2.3.0 [flutter google_maps_flutter_android google_maps_flutter_ios google_maps_flutter_platform_interface google_maps_flutter_web] - google_sign_in 6.1.4 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - graphic 2.2.0 [collection flutter vector_math path_drawing] - hive_flutter 1.1.0 [flutter hive path_provider path] - in_app_purchase 3.1.7 [flutter in_app_purchase_android in_app_purchase_platform_interface in_app_purchase_storekit] - in_app_review 2.0.6 [flutter in_app_review_platform_interface] - injectable 2.1.2 [get_it] - intl 0.18.0 [clock meta path] - json_annotation 4.8.1 [meta] - location 4.4.0 [flutter location_platform_interface location_web] - lottie 2.4.0 [archive flutter path vector_math] - package_info_plus 4.0.2 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32] - permission_handler 10.3.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface] - pinput 2.2.31 [flutter smart_auth universal_platform] - pretty_dio_logger 1.3.1 [dio] - retrofit 4.0.1 [dio meta] - rxdart 0.27.7 - shared_preferences 2.1.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - sign_in_with_apple 5.0.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web] - sizer 2.0.15 [universal_io flutter] - smooth_page_indicator 1.1.0 [flutter] - speech_to_text 6.1.1 [flutter speech_to_text_platform_interface speech_to_text_macos json_annotation clock pedantic flutter_web_plugins meta js] - table_calendar 3.0.9 [flutter intl simple_gesture_detector] - translit 2.0.1 - url_launcher 6.1.11 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] dev dependencies: - auto_route_generator 7.1.1 [build source_gen analyzer path build_runner code_builder dart_style xml args glob auto_route] - build_runner 2.4.5 [analyzer args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - change_app_package_name 1.1.0 - flutter_gen_runner 5.3.1 [flutter_gen_core build collection crypto glob path] - flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml] - flutter_lints 2.0.1 [lints] - flutter_native_splash 2.3.1 [args flutter flutter_web_plugins js html image meta path universal_io xml yaml] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection js matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph] - freezed 2.3.5 [analyzer build build_config collection meta source_gen freezed_annotation json_annotation] - hive_generator 2.0.0 [build source_gen hive analyzer source_helper] - injectable_generator 2.1.6 [build source_gen path glob analyzer code_builder dart_style injectable collection recase] - json_serializable 6.7.0 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper] - retrofit_generator 7.0.1 [analyzer build built_collection code_builder dart_style dio retrofit source_gen tuple] transitive dependencies: - _fe_analyzer_shared 61.0.0 [meta] - _flutterfire_internals 1.3.3 [collection firebase_core firebase_core_platform_interface flutter meta] - analyzer 5.13.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 3.3.7 [crypto path pointycastle] - args 2.4.2 - async 2.11.0 [collection meta] - bloc 8.1.2 [meta] - boolean_selector 2.1.1 [source_span string_scanner] - build 2.4.0 [analyzer async convert crypto glob logging meta package_config path] - build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 4.0.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.2.0 [analyzer async build collection crypto graphs logging path package_config pool pub_semver stream_transform yaml] - build_runner_core 7.2.10 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta package_config path pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.6.1 [built_collection collection fixnum meta] - characters 1.3.0 - checked_yaml 2.0.3 [json_annotation source_span yaml] - cli_util 0.4.0 [meta path] - clock 1.1.1 - code_builder 4.5.0 [built_collection built_value collection matcher meta] - color 3.0.0 - convert 3.1.1 [typed_data] - csslib 1.0.0 [source_span] - dart_style 2.3.1 [analyzer args path pub_semver source_span] - dartx 1.1.0 [characters collection crypto meta path time] - dbus 0.7.8 [args ffi meta xml] - device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface] - facebook_auth_desktop 1.0.0 [flutter http flutter_secure_storage flutter_facebook_auth_platform_interface] - fake_async 1.3.1 [clock collection] - ffi 2.0.2 - file 6.1.4 [meta path] - firebase_analytics_platform_interface 3.6.3 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.5.4+3 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - firebase_core_platform_interface 4.8.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.6.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_crashlytics_platform_interface 3.6.3 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 4.5.3 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.5.3 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - fixnum 1.1.0 - flutter_facebook_auth_platform_interface 5.0.0 [flutter plugin_platform_interface] - flutter_facebook_auth_web 5.0.0 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface] - flutter_gen_core 5.3.1 [path yaml mime xml dartx color collection json_annotation glob dart_style analyzer args pub_semver source_span] - flutter_local_notifications_linux 4.0.0+1 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories] - flutter_local_notifications_platform_interface 7.0.0+1 [flutter plugin_platform_interface] - flutter_plugin_android_lifecycle 2.0.15 [flutter] - flutter_secure_storage 8.0.0 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta] - flutter_secure_storage_linux 1.1.3 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_macos 3.0.0 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_platform_interface 1.0.1 [flutter plugin_platform_interface] - flutter_secure_storage_web 1.1.1 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js] - flutter_secure_storage_windows 2.0.0 [flutter flutter_secure_storage_platform_interface] - flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math] - frontend_server_client 3.2.0 [async path] - glob 2.1.2 [async collection file path string_scanner] - google_identity_services_web 0.2.1 [js meta] - google_maps 6.3.0 [js js_wrapping meta] - google_maps_flutter_android 2.4.15 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface stream_transform] - google_maps_flutter_ios 2.2.3 [flutter google_maps_flutter_platform_interface stream_transform] - google_maps_flutter_platform_interface 2.2.7 [collection flutter plugin_platform_interface stream_transform] - google_maps_flutter_web 0.5.0+1 [flutter flutter_web_plugins google_maps google_maps_flutter_platform_interface sanitize_html stream_transform] - google_sign_in_android 6.1.16 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.6.2 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.4.1 [flutter plugin_platform_interface quiver] - google_sign_in_web 0.12.0+2 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http js] - graphs 2.3.1 [collection] - hive 2.2.3 [meta crypto] - html 0.15.4 [csslib source_span] - http 1.0.0 [async http_parser meta] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image 4.0.17 [archive meta xml] - in_app_purchase_android 0.3.0+5 [collection flutter in_app_purchase_platform_interface json_annotation] - in_app_purchase_platform_interface 1.3.4 [flutter plugin_platform_interface] - in_app_purchase_storekit 0.3.6+4 [collection flutter in_app_purchase_platform_interface json_annotation] - in_app_review_platform_interface 2.0.4 [flutter url_launcher plugin_platform_interface platform] - io 1.0.4 [meta path string_scanner] - js 0.6.7 [meta] - js_wrapping 0.7.4 [js] - lints 2.1.1 - location_platform_interface 2.3.0 [flutter meta plugin_platform_interface] - location_web 3.1.1 [flutter flutter_web_plugins http_parser js location_platform_interface meta] - logging 1.2.0 - matcher 0.12.15 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.2.0 - meta 1.9.1 - mime 1.0.4 - nested 1.0.0 [flutter] - package_config 2.1.0 [path] - package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - path 1.8.3 - path_drawing 1.0.1 [vector_math meta path_parsing flutter] - path_parsing 1.0.1 [vector_math meta] - path_provider 2.0.15 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - path_provider_android 2.0.27 [flutter path_provider_platform_interface] - path_provider_foundation 2.2.3 [flutter path_provider_platform_interface] - path_provider_linux 2.1.11 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.0.6 [flutter platform plugin_platform_interface] - path_provider_windows 2.1.7 [ffi flutter path path_provider_platform_interface win32] - pedantic 1.11.1 - permission_handler_android 10.2.3 [flutter permission_handler_platform_interface] - permission_handler_apple 9.1.0 [flutter permission_handler_platform_interface] - permission_handler_platform_interface 3.10.0 [flutter meta plugin_platform_interface] - permission_handler_windows 0.1.2 [flutter permission_handler_platform_interface] - petitparser 5.4.0 [meta] - platform 3.1.0 - plugin_platform_interface 2.1.4 [meta] - pointycastle 3.7.3 [collection convert js] - pool 1.5.1 [async stack_trace] - process 4.2.4 [file path platform] - provider 6.0.5 [collection flutter nested] - pub_semver 2.1.4 [collection meta] - pubspec_parse 1.2.3 [checked_yaml collection json_annotation pub_semver yaml] - quiver 3.2.1 [matcher] - recase 4.1.0 - sanitize_html 2.0.0 [html meta] - shared_preferences_android 2.1.4 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.2.2 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.2.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.2.0 [flutter plugin_platform_interface] - shared_preferences_web 2.1.0 [flutter flutter_web_plugins shared_preferences_platform_interface] - shared_preferences_windows 2.2.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - shelf 1.4.1 [async collection http_parser path stack_trace stream_channel] - shelf_web_socket 1.0.4 [shelf stream_channel web_socket_channel] - sign_in_with_apple_platform_interface 1.0.0 [flutter plugin_platform_interface meta] - sign_in_with_apple_web 1.0.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface js] - simple_gesture_detector 0.2.0 [flutter] - sky_engine 0.0.99 - smart_auth 1.0.8 [flutter flutter_web_plugins] - source_gen 1.3.2 [analyzer async build dart_style glob path source_span yaml] - source_helper 1.3.3 [analyzer collection source_gen] - source_span 1.9.1 [collection path term_glyph] - speech_to_text_macos 1.0.2 [flutter plugin_platform_interface speech_to_text_platform_interface] - speech_to_text_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - stack_trace 1.11.0 [path] - stream_channel 2.1.1 [async] - stream_transform 2.1.0 - string_scanner 1.2.0 [source_span] - term_glyph 1.2.1 - test_api 0.5.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - time 2.1.3 [clock] - timezone 0.9.2 [path] - timing 1.0.1 [json_annotation] - tuple 2.0.2 - typed_data 1.3.2 [collection] - universal_io 2.2.2 [collection meta typed_data] - universal_platform 1.0.0+1 - url_launcher_android 6.0.35 [flutter url_launcher_platform_interface] - url_launcher_ios 6.1.4 [flutter url_launcher_platform_interface] - url_launcher_linux 3.0.5 [flutter url_launcher_platform_interface] - url_launcher_macos 3.0.5 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.1.2 [flutter plugin_platform_interface] - url_launcher_web 2.0.17 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.6 [flutter url_launcher_platform_interface] - vector_graphics 1.1.7 [flutter vector_graphics_codec] - vector_graphics_codec 1.1.7 - vector_graphics_compiler 1.1.7 [args meta path_parsing xml vector_graphics_codec] - vector_math 2.1.4 - watcher 1.1.0 [async path] - web_socket_channel 2.4.0 [async crypto stream_channel] - webview_flutter 3.0.4 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview] - webview_flutter_android 2.10.4 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 1.9.5 [flutter meta plugin_platform_interface] - webview_flutter_wkwebview 2.9.5 [flutter path webview_flutter_platform_interface] - win32 5.0.3 [ffi] - win32_registry 1.1.1 [ffi win32] - xdg_directories 1.0.0 [meta path process] - xml 6.3.0 [collection meta petitparser] - yaml 3.1.2 [collection source_span string_scanner] ```
Okladnoj commented 1 year ago

pod file

podfile ```shell # Uncomment this line to define a global platform for your project platform :ios, '13.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end ```
walsha2 commented 1 year ago

The comments on this issue have really not progressed determining what is wrong and how to actually solve it. Seems like any "solution" is just some odd patch that gets it to work in that user's environment, but does not actually address the core issue with modular headers and the Firebase pods, chiefly from FirebaseSessions.FIRSESNanoPBHelpers

@mrcsilva have you been able to resolve this issue somehow or have you just pinned the Firebase package versions to some older state? Since the update to Dart 3 and latest Flutter stable versions I am now getting into dependency hell as the locked Firebase package versions are limiting me from updating other, unrelated, packages.

Plus battling the google-oss-bot from labeling this issue as stale every couple of weeks πŸ˜…

mrcsilva commented 1 year ago

@walsha2 I haven't had to update my app for a while so I just kept a specific version. That will be a problem soon.

From time to time I use the sample app that I created for this issue to check if it solved or not.

I don't think that modifying podfiles is a solution. The Firebase packages alone should compile as is and not force the user to change the podfile.

We'll have to wait a little more I guess πŸ˜…

kzrnm commented 11 months ago

Even though I git clone a same repository, it sometimes worked on some computer and sometimes didn't on other computer.


I got the similar error after adding pod 'nanopb' on a computer which was working fine.

pod 'nanopb' # cause non-modular headers error

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

When it works, ios/Pods/Target Support Files/nanopb/ directory exists. When it fails, ios/Pods/Target Support Files/nanopb-framework/ and ios/Pods/Target Support Files/nanopb-library/ exist instead of ios/Pods/Target Support Files/nanopb/.

non-modular headers Error

>>> ls -Rl ios/Pods/Target\ Support\ Files/nanopb*
ios/Pods/Target Support Files/nanopb-framework:
total 56
-rw-r--r--  1 kzrnm  staff  858  7 12 22:59 nanopb-framework-Info.plist
-rw-r--r--  1 kzrnm  staff  136  7 12 22:59 nanopb-framework-dummy.m
-rw-r--r--  1 kzrnm  staff  195  7 12 22:59 nanopb-framework-prefix.pch
-rw-r--r--  1 kzrnm  staff  503  7 12 22:59 nanopb-framework-umbrella.h
-rw-r--r--  1 kzrnm  staff  791  7 12 22:59 nanopb-framework.debug.xcconfig
-rw-r--r--  1 kzrnm  staff  112  7 12 22:59 nanopb-framework.modulemap
-rw-r--r--  1 kzrnm  staff  791  7 12 22:59 nanopb-framework.release.xcconfig

ios/Pods/Target Support Files/nanopb-library:
total 32
-rw-r--r--  1 kzrnm  staff  132  7 12 22:59 nanopb-library-dummy.m
-rw-r--r--  1 kzrnm  staff  195  7 12 22:59 nanopb-library-prefix.pch
-rw-r--r--  1 kzrnm  staff  895  7 12 22:59 nanopb-library.debug.xcconfig
-rw-r--r--  1 kzrnm  staff  895  7 12 22:59 nanopb-library.release.xcconfig
Contents ``` >>> tail -n+1 ios/Pods/Target\ Support\ Files/nanopb*/* ==> ios/Pods/Target Support Files/nanopb-framework/nanopb-framework-dummy.m <== #import @interface PodsDummy_nanopb_framework : NSObject @end @implementation PodsDummy_nanopb_framework @end ==> ios/Pods/Target Support Files/nanopb-framework/nanopb-framework-Info.plist <== CFBundleDevelopmentRegion ${PODS_DEVELOPMENT_LANGUAGE} CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier ${PRODUCT_BUNDLE_IDENTIFIER} CFBundleInfoDictionaryVersion 6.0 CFBundleName ${PRODUCT_NAME} CFBundlePackageType FMWK CFBundleShortVersionString 2.30909.0 CFBundleSignature ???? CFBundleVersion ${CURRENT_PROJECT_VERSION} NSPrincipalClass ==> ios/Pods/Target Support Files/nanopb-framework/nanopb-framework-prefix.pch <== #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif ==> ios/Pods/Target Support Files/nanopb-framework/nanopb-framework-umbrella.h <== #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "pb.h" #import "pb_common.h" #import "pb_decode.h" #import "pb_encode.h" #import "pb.h" #import "pb_decode.h" #import "pb_common.h" #import "pb.h" #import "pb_encode.h" #import "pb_common.h" FOUNDATION_EXPORT double nanopbVersionNumber; FOUNDATION_EXPORT const unsigned char nanopbVersionString[]; ==> ios/Pods/Target Support Files/nanopb-framework/nanopb-framework.debug.xcconfig <== CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/nanopb-framework GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} PODS_ROOT = ${SRCROOT} PODS_TARGET_SRCROOT = ${PODS_ROOT}/nanopb PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} SKIP_INSTALL = YES USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES ==> ios/Pods/Target Support Files/nanopb-framework/nanopb-framework.modulemap <== framework module nanopb { umbrella header "nanopb-framework-umbrella.h" export * module * { export * } } ==> ios/Pods/Target Support Files/nanopb-framework/nanopb-framework.release.xcconfig <== CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/nanopb-framework GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} PODS_ROOT = ${SRCROOT} PODS_TARGET_SRCROOT = ${PODS_ROOT}/nanopb PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} SKIP_INSTALL = YES USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES ==> ios/Pods/Target Support Files/nanopb-library/nanopb-library-dummy.m <== #import @interface PodsDummy_nanopb_library : NSObject @end @implementation PodsDummy_nanopb_library @end ==> ios/Pods/Target Support Files/nanopb-library/nanopb-library-prefix.pch <== #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif ==> ios/Pods/Target Support Files/nanopb-library/nanopb-library.debug.xcconfig <== CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/nanopb-library GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/nanopb" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/nanopb" PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} PODS_ROOT = ${SRCROOT} PODS_TARGET_SRCROOT = ${PODS_ROOT}/nanopb PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} SKIP_INSTALL = YES USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES ==> ios/Pods/Target Support Files/nanopb-library/nanopb-library.release.xcconfig <== CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/nanopb-library GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/nanopb" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/nanopb" PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} PODS_ROOT = ${SRCROOT} PODS_TARGET_SRCROOT = ${PODS_ROOT}/nanopb PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} SKIP_INSTALL = YES USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES ```

Worked

>>> ls -Rl ios/Pods/Target\ Support\ Files/nanopb*
total 56
-rw-r--r--  1 kzrnm  staff  858  7 12 19:51 nanopb-Info.plist
-rw-r--r--  1 kzrnm  staff  116  7 12 19:51 nanopb-dummy.m
-rw-r--r--  1 kzrnm  staff  195  7 12 19:51 nanopb-prefix.pch
-rw-r--r--  1 kzrnm  staff  503  7 12 19:51 nanopb-umbrella.h
-rw-r--r--  1 kzrnm  staff  716  7 12 19:51 nanopb.debug.xcconfig
-rw-r--r--  1 kzrnm  staff  102  7 12 19:51 nanopb.modulemap
-rw-r--r--  1 kzrnm  staff  716  7 12 19:51 nanopb.release.xcconfig

>>> ls -Rl ios/Pods/Target\ Support\ Files/nanopb*
drwxr-xr-x  9 kzrnm  staff  288  7 12 19:51 ios/Pods/Target Support Files/nanopb/
Contents ``` >>> tail -n+1 ios/Pods/Target\ Support\ Files/nanopb*/* ==> ios/Pods/Target Support Files/nanopb/nanopb-dummy.m <== #import @interface PodsDummy_nanopb : NSObject @end @implementation PodsDummy_nanopb @end ==> ios/Pods/Target Support Files/nanopb/nanopb-Info.plist <== CFBundleDevelopmentRegion ${PODS_DEVELOPMENT_LANGUAGE} CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier ${PRODUCT_BUNDLE_IDENTIFIER} CFBundleInfoDictionaryVersion 6.0 CFBundleName ${PRODUCT_NAME} CFBundlePackageType FMWK CFBundleShortVersionString 2.30909.0 CFBundleSignature ???? CFBundleVersion ${CURRENT_PROJECT_VERSION} NSPrincipalClass ==> ios/Pods/Target Support Files/nanopb/nanopb-prefix.pch <== #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif ==> ios/Pods/Target Support Files/nanopb/nanopb-umbrella.h <== #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "pb.h" #import "pb_common.h" #import "pb_decode.h" #import "pb_encode.h" #import "pb.h" #import "pb_decode.h" #import "pb_common.h" #import "pb.h" #import "pb_encode.h" #import "pb_common.h" FOUNDATION_EXPORT double nanopbVersionNumber; FOUNDATION_EXPORT const unsigned char nanopbVersionString[]; ==> ios/Pods/Target Support Files/nanopb/nanopb.debug.xcconfig <== CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/nanopb GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1 PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} PODS_ROOT = ${SRCROOT} PODS_TARGET_SRCROOT = ${PODS_ROOT}/nanopb PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} SKIP_INSTALL = YES USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES ==> ios/Pods/Target Support Files/nanopb/nanopb.modulemap <== framework module nanopb { umbrella header "nanopb-umbrella.h" export * module * { export * } } ==> ios/Pods/Target Support Files/nanopb/nanopb.release.xcconfig <== CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/nanopb GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1 PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} PODS_ROOT = ${SRCROOT} PODS_TARGET_SRCROOT = ${PODS_ROOT}/nanopb PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} SKIP_INSTALL = YES USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES ```

Env

Versions ``` >>> swift --version swift-driver version: 1.75.2 Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100) Target: arm64-apple-macosx13.0 >>> xcodebuild -version Xcode 14.3.1 Build version 14E300c >> pod --version 1.12.1 ```
kzrnm commented 11 months ago

Although it is a provisional method, I was able to build iOS project.

  1. Make ios/nanopb directory.
  2. Download files of nanopb@0.3.9.9 and nanopb-podspec to ios/nanopb.
  3. Add pod 'nanopb', :path => './nanopb' to ios/Podfile

https://github.com/mrcsilva/crashlytics_error/pull/1

walsha2 commented 11 months ago

After all these months, finally some sort of build solution, albeit a workaround.

@kzrnm is spot on. The minimal changes in https://github.com/mrcsilva/crashlytics_error/pull/1/files (described in https://github.com/firebase/flutterfire/issues/10621#issuecomment-1634522430) do indeed get this to finally build.

Thank you for providing that workaround.

mrcsilva commented 11 months ago

@kzrnm Thanks for the workaround. However, I'll stick to specifying old versions until Google fixes this. I hope they will soon

russellwheatley commented 9 months ago

I decided to circle back to this issue. This comment was interesting to me, and indeed is the cause of the issue.

The quickest way to test whether nanopb dependency is installed correctly and can be located is by running pod install --verbose in the ios directory. If it was installed correctly, you would see this in your console:

    - Installing target `nanopb` iOS 9.0
      - Generating module map file at `Pods/Target Support Files/nanopb/nanopb.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/nanopb/nanopb-umbrella.h`
      - Generating Info.plist file at `Pods/Target Support Files/nanopb/nanopb-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/nanopb/nanopb-dummy.m`

If it isn't installed as expected by the Firebase SDK, it would look like this:

    - Installing target `nanopb-framework` iOS 9.0
      - Generating module map file at `Pods/Target Support Files/nanopb-framework/nanopb-framework.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/nanopb-framework/nanopb-framework-umbrella.h`
      - Generating Info.plist file at `Pods/Target Support Files/nanopb-framework/nanopb-framework-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/nanopb-framework/nanopb-framework-dummy.m`
    - Installing target `nanopb-library` iOS 9.0
      - Generating dummy source at `Pods/Target Support Files/nanopb-library/nanopb-library-dummy.m`

I found that if I commented out this line in your Podfile, @mrcsilva, it would install nanopb dependency on the correct path and the app would build correctly.

To check whether this was a result of the FlutterFire plugins, I removed them (all FlutterFire plugins) from the pubspec.yaml, ran flutter clean and added them as dependencies in the Podfile:

  pod 'Firebase/Core'
  pod 'Firebase/Crashlytics'

I ran pod install --verbose and got the same results when commenting/uncommenting out the global platform setting at the top of the Podfile. In fact, I completely cleared out the Podfile of all Flutter configuration and still got the same results. This leads me to believe it isn't a result of FlutterFire nor anything set in the Podfile.

I also created a Swift project from scratch and added the pods like above:

  pod 'Firebase/Core'
  pod 'Firebase/Crashlytics'

But got the correct nanopb installation no matter whether the global platform setting in the Podfile was commented out/uncommented.

I can only surmise that it is something set in the project.pbxproj or Xcode that is making the difference. But not sure what could make cocoapods install it differently.

mrcsilva commented 9 months ago

@russellwheatley Still hadn't time to test your findings. I'll try to do so this week

russellwheatley commented 9 months ago

I found that if I commented out this line in your Podfile, @mrcsilva, it would install nanopb dependency on the correct path and the app would build correctly.

This is the critical line buried in my last comment. It is presumably the key to the solution I think.

mrcsilva commented 8 months ago

I found that if I commented out this line in your Podfile, @mrcsilva, it would install nanopb dependency on the correct path and the app would build correctly.

This is the critical line buried in my last comment. It is presumably the key to the solution I think.

@russellwheatley That was it!

I don't remember why I needed to add that line. Removing it solved the problem and I was able to build the app without any problem.

Thanks to everyone that helped!

darshankawar commented 8 months ago

Closing this based on above comment as resolved.