Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [firebase] ios build error with FirebaseSDK 10.0.0 #9761

Closed
leehack opened this issue Oct 20, 2022 · 39 comments
Closed

🐛 [firebase] ios build error with FirebaseSDK 10.0.0 #9761

leehack opened this issue Oct 20, 2022 · 39 comments
Assignees
Labels
platform: ios Issues / PRs which are specifically for iOS. plugin: cloud_firestore resolution: solution-provided A solution has been provided in the issue. type: bug Something isn't working

Comments

@leehack
Copy link

leehack commented Oct 20, 2022

Bug report

Describe the bug

iOS build is failing. Tried the clean but still failing.

rm -rf build
rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/.pub-cache/hosted/pub.dartlang.org/
pod cache clean --all
flutter clean
flutter pub get
pod repo update
pod install

FirebaseSDK 10.0.0
Xcode 14.0.1

  firebase_core: ^2.0.0
  firebase_auth: ^4.0.1
  firebase_analytics: ^10.0.1
  firebase_crashlytics: ^3.0.1
  firebase_dynamic_links: ^5.0.1
  firebase_messaging: ^14.0.1
  cloud_firestore: ^4.0.1
Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC0D16DecodingStrategyO6base64yA2EmFWC

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO14useDefaultKeysyA2EmFWC

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC19keyDecodingStrategyAC03KeygH0OvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20DateDecodingStrategyO6customyAE10Foundation0F0Vs0E0_pKccAEmFWC

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20dataDecodingStrategyAC0dgH0OvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20dateDecodingStrategyAC04DategH0OvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC34NonConformingFloatDecodingStrategyO5throwyA2EmFWC

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC34nonConformingFloatDecodingStrategyAC03NonghiJ0OvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC6decode_4fromxxm_yptKSeRzlFTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC8userInfoSDys010CodingUserG3KeyVypGvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC0D16EncodingStrategyO6base64yA2EmFWC

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC19KeyEncodingStrategyO14useDefaultKeysyA2EmFWC

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC19keyEncodingStrategyAC03KeygH0OvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20DateEncodingStrategyO6customyAEy10Foundation0F0V_s0E0_ptKccAEmFWC

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20dataEncodingStrategyAC0dgH0OvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20dateEncodingStrategyAC04DategH0OvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC34NonConformingFloatEncodingStrategyO5throwyA2EmFWC

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC34nonConformingFloatEncodingStrategyAC03NonghiJ0OvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC6encodeyypxKSERzlFTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC8userInfoSDys010CodingUserG3KeyVypGvsTj

Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift38StructureCodingPassthroughTypeResolverP02isfG0ySbqd__lFZTq

Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
[✓] Flutter (Channel stable, 3.3.5, on macOS 12.6 21G115 darwin-x64, locale en-US)
    • Flutter version 3.3.5 on channel stable at /Users/jhin.lee/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d9111f6402 (6 hours ago), 2022-10-19 12:27:13 -0700
    • Engine revision 3ad69d7be3
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/jhin.lee/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 70.2.5
    • Dart plugin version 222.4345.14

[✓] VS Code (version 1.72.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (3 available)
    • iPhone SE (3rd generation) (mobile) • A9A197A1-DA5B-4AFB-BA76-C3C4D22E8B6C • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)                     • macos                                • darwin-x64     • macOS 12.6 21G115 darwin-x64
    • Chrome (web)                        • chrome                               • web-javascript • Google Chrome 106.0.5249.119

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Flutter dependencies

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

Click To Expand
Dart SDK 2.18.2
Flutter SDK 3.3.5
cbeyond 1.2.28+28

dependencies:
- auto_size_text 3.0.0 [flutter]
- cached_network_image 3.2.2 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web]
- carousel_slider 4.1.1 [flutter]
- cbeyond_attribute 1.0.0 [cloud_firestore riverpod json_annotation freezed_annotation cbeyond_core]
- cbeyond_bookmark 1.0.0 [firebase_auth cloud_firestore riverpod json_annotation freezed_annotation cbeyond_core]
- cbeyond_brand 1.0.0 [cloud_firestore riverpod json_annotation freezed_annotation cbeyond_core]
- cbeyond_category 1.0.0 [cloud_firestore riverpod json_annotation freezed_annotation cbeyond_core]
- cbeyond_certification 1.0.0 [cloud_firestore riverpod json_annotation freezed_annotation cbeyond_core]
- cbeyond_core 1.0.0 [freezed_annotation json_annotation cloud_firestore]
- cbeyond_country 1.0.0 [cloud_firestore cloud_functions riverpod json_annotation freezed_annotation cbeyond_core]
- cbeyond_location 1.0.0 [cloud_firestore cloud_functions riverpod json_annotation freezed_annotation cbeyond_core]
- cbeyond_search 1.0.0 [cloud_functions riverpod json_annotation freezed_annotation cbeyond_core]
- cbeyond_user 1.0.0 [image crypto firebase_auth cloud_firestore cloud_functions firebase_storage google_sign_in sign_in_with_apple flutter_facebook_auth shared_preferences riverpod json_annotation freezed_annotation cbeyond_core]
- cloud_firestore 4.0.1 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- collection 1.16.0
- crypto 3.0.2 [typed_data]
- firebase_analytics 10.0.1 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_auth 4.0.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 2.0.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 3.0.1 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_dynamic_links 5.0.1 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
- firebase_messaging 14.0.1 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_local_notifications 12.0.2 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math]
- flutter_riverpod 2.0.2 [collection flutter meta riverpod state_notifier]
- flutter_svg 1.1.5 [flutter meta path_drawing vector_math xml]
- freezed_annotation 2.2.0 [collection json_annotation meta]
- geocoding 2.0.5 [flutter geocoding_platform_interface]
- geolocator 9.0.2 [flutter geolocator_platform_interface geolocator_android geolocator_apple geolocator_web geolocator_windows]
- go_router 5.1.1 [collection flutter flutter_web_plugins logging meta]
- google_maps_flutter 2.2.1 [flutter google_maps_flutter_android google_maps_flutter_ios google_maps_flutter_platform_interface]
- http 0.13.5 [async http_parser meta path]
- image 3.2.2 [archive meta xml]
- image_picker 0.8.6 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface]
- intl 0.17.0 [clock path]
- json_annotation 4.7.0 [meta]
- logger 1.1.0
- path_provider 2.0.11 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- provider 6.0.4 [collection flutter nested]
- share_plus 6.0.0 [cross_file meta mime flutter flutter_web_plugins share_plus_platform_interface file url_launcher ffi win32]
- shared_preferences 2.0.15 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- tuple 2.0.1
- url_launcher 6.1.6 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- webview_flutter 3.0.4 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview]

dev dependencies:
- build_runner 2.3.2 [args async analyzer 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]
- dart_code_metrics 4.21.2 [analyzer analyzer_plugin ansicolor args collection crypto file glob html meta path platform pub_updater source_span xml yaml]
- flutter_lints 2.0.1 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]
- freezed 2.2.0 [analyzer build build_config collection meta source_gen freezed_annotation json_annotation]
- json_serializable 6.5.3 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper]

transitive dependencies:
- _fe_analyzer_shared 49.0.0 [meta]
- _flutterfire_internals 1.0.4 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- analyzer 5.1.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- analyzer_plugin 0.11.2 [analyzer collection dart_style pub_semver yaml]
- ansicolor 2.0.1
- archive 3.3.2 [crypto path]
- args 2.3.1
- async 2.9.0 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- build 2.3.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.1.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.0.10 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.6 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.4.1 [built_collection collection fixnum meta]
- cached_network_image_platform_interface 2.0.0 [flutter flutter_cache_manager]
- cached_network_image_web 1.0.2 [flutter flutter_cache_manager cached_network_image_platform_interface]
- characters 1.2.1
- checked_yaml 2.0.1 [json_annotation source_span yaml]
- clock 1.1.1
- cloud_firestore_platform_interface 5.8.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 3.0.1 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- cloud_functions 4.0.1 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- cloud_functions_platform_interface 5.1.20 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.3.9 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- code_builder 4.3.0 [built_collection built_value collection matcher meta]
- convert 3.1.1 [typed_data]
- cross_file 0.3.3+2 [js meta]
- csslib 0.17.2 [source_span]
- dart_style 2.2.4 [analyzer args path pub_semver source_span]
- dbus 0.7.8 [args ffi meta xml]
- fake_async 1.3.1 [clock collection]
- ffi 2.0.1
- file 6.1.4 [meta path]
- firebase_analytics_platform_interface 3.3.9 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.1 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_auth_platform_interface 6.10.3 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.0.1 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.5.1 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.0.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics_platform_interface 3.3.2 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_dynamic_links_platform_interface 0.2.3+17 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_platform_interface 4.2.2 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 3.2.2 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- firebase_storage 11.0.1 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- firebase_storage_platform_interface 4.1.20 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.3.11 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta]
- fixnum 1.0.1
- flutter_blurhash 0.7.0 [flutter]
- flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid]
- flutter_facebook_auth 4.4.1+1 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web]
- flutter_facebook_auth_platform_interface 3.2.0 [flutter plugin_platform_interface]
- flutter_facebook_auth_web 3.2.0 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface]
- flutter_local_notifications_linux 2.0.0 [flutter flutter_local_notifications_platform_interface dbus path xdg_directories]
- flutter_local_notifications_platform_interface 6.0.0 [flutter plugin_platform_interface]
- flutter_plugin_android_lifecycle 2.0.7 [flutter]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- frontend_server_client 3.0.0 [async path]
- geocoding_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- geolocator_android 4.1.4 [flutter geolocator_platform_interface]
- geolocator_apple 2.2.2 [flutter geolocator_platform_interface]
- geolocator_platform_interface 4.0.7 [flutter plugin_platform_interface vector_math meta]
- geolocator_web 2.1.6 [flutter flutter_web_plugins geolocator_platform_interface]
- geolocator_windows 0.1.1 [flutter geolocator_platform_interface]
- glob 2.1.0 [async collection file path string_scanner]
- google_maps_flutter_android 2.3.2 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface stream_transform]
- google_maps_flutter_ios 2.1.12 [flutter google_maps_flutter_platform_interface stream_transform]
- google_maps_flutter_platform_interface 2.2.4 [collection flutter plugin_platform_interface stream_transform]
- google_sign_in 5.4.2 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- google_sign_in_android 6.1.1 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.5.0 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.3.0 [flutter plugin_platform_interface quiver]
- google_sign_in_web 0.10.2 [flutter flutter_web_plugins google_sign_in_platform_interface js]
- graphs 2.1.0 [collection]
- html 0.15.1 [csslib source_span]
- http_multi_server 3.2.1 [async]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- image_picker_android 0.8.5+3 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 2.1.10 [flutter flutter_web_plugins image_picker_platform_interface]
- image_picker_ios 0.8.6+1 [flutter image_picker_platform_interface]
- image_picker_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface]
- io 1.0.3 [meta path string_scanner]
- js 0.6.4
- lints 2.0.0
- logging 1.1.0
- matcher 0.12.12 [stack_trace]
- material_color_utilities 0.1.5
- meta 1.8.0
- mime 1.0.2
- nested 1.0.0 [flutter]
- octo_image 1.0.2 [flutter flutter_blurhash]
- package_config 2.1.0 [path]
- path 1.8.2
- path_drawing 1.0.1 [vector_math meta path_parsing flutter]
- path_parsing 1.0.1 [vector_math meta]
- path_provider_android 2.0.20 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.11 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.7 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.6 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.5 [flutter platform plugin_platform_interface]
- path_provider_windows 2.1.3 [ffi flutter path path_provider_platform_interface win32]
- pedantic 1.11.1
- petitparser 5.0.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.3 [meta]
- pool 1.5.1 [async stack_trace]
- process 4.2.4 [file path platform]
- pub_semver 2.1.2 [collection meta]
- pub_updater 0.2.2 [http json_annotation process]
- pubspec_parse 1.2.1 [checked_yaml collection json_annotation pub_semver yaml]
- quiver 3.1.0 [matcher]
- riverpod 2.0.2 [collection meta stack_trace state_notifier]
- rxdart 0.27.5
- share_plus_platform_interface 3.1.1 [cross_file flutter meta mime plugin_platform_interface]
- shared_preferences_android 2.0.14 [flutter shared_preferences_platform_interface]
- shared_preferences_ios 2.1.1 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.1.1 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_macos 2.0.4 [flutter shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.1.0 [flutter plugin_platform_interface]
- shared_preferences_web 2.0.4 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.1.1 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- shelf 1.4.0 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.2 [shelf stream_channel web_socket_channel]
- sign_in_with_apple 4.1.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web]
- 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]
- sky_engine 0.0.99
- source_gen 1.2.6 [analyzer async build dart_style glob meta path source_span yaml]
- source_helper 1.3.3 [analyzer collection source_gen]
- source_span 1.9.0 [collection path term_glyph]
- sqflite 2.1.0+1 [flutter sqflite_common path]
- sqflite_common 2.3.0 [synchronized path meta]
- stack_trace 1.10.0 [path]
- state_notifier 0.7.2+1 [meta]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.1
- string_scanner 1.1.1 [source_span]
- synchronized 3.0.0+3
- term_glyph 1.2.1
- test_api 0.4.12 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timezone 0.9.0 [path]
- timing 1.0.0 [json_annotation]
- typed_data 1.3.1 [collection]
- url_launcher_android 6.0.19 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.0.17 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.0.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.0.1 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.1.1 [flutter plugin_platform_interface]
- url_launcher_web 2.0.13 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.0.1 [flutter url_launcher_platform_interface]
- uuid 3.0.6 [crypto]
- vector_math 2.1.2
- watcher 1.0.2 [async path]
- web_socket_channel 2.2.0 [async crypto stream_channel]
- 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 3.0.1 [ffi]
- xdg_directories 0.2.0+2 [meta path process]
- xml 6.1.0 [collection meta petitparser]
- yaml 3.1.1 [collection source_span string_scanner]

@leehack leehack added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Oct 20, 2022
@jslattery26
Copy link

I'm getting this too -- ive been trying to figure it out

@jslattery26
Copy link

jslattery26 commented Oct 20, 2022

Hey i just figured out a workaround for now. I think it's an issue with the pre-compiled version.
comment this out, clean everything, re-run. It takes so long but it works

# pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.0.0'

This is most likely related: invertase/firestore-ios-sdk-frameworks#59 (comment)

@leehack
Copy link
Author

leehack commented Oct 20, 2022

Interesting. That's a good finding. I also tried it but it didn't work. I should probably retry it with a clean.

@danagbemava-nc danagbemava-nc added the triage Issue is currently being triaged. label Oct 20, 2022
@danagbemava-nc
Copy link

Hi @leehack, can you provide the full verbose output of flutter run -v? The output may be huge so kindly put into a .txt file and attach it here.

Thank you

@danagbemava-nc danagbemava-nc added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Oct 20, 2022
@russellwheatley
Copy link
Member

I tried with all packages involved and it ran fine. Run flutter clean. Then cd into ios/ directory and run: rm Podfile.lock && rm -rf Pods. cd back into root of project and run flutter pub get. It should run fine. You shouldn't need to remove this line:

# pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.0.0'

@leehack
Copy link
Author

leehack commented Oct 20, 2022

@russellwheatley I created a new project with the dependencies I mentioned above. It worked, but I realized that there were some missing dependencies in the list.

  firebase_core: ^2.0.0
  firebase_auth: ^4.0.1
  firebase_analytics: ^10.0.1
  firebase_crashlytics: ^3.0.1
  firebase_dynamic_links: ^5.0.1
  firebase_messaging: ^14.0.1
  cloud_firestore: ^4.0.1
  firebase_storage: ^11.0.1
  cloud_functions: ^4.0.1

I also tried to remove dependencies one by one. Finally, I figured that the issue comes with the cloud_functions: ^4.0.1

Let me prepare the flutter run -v log as well.

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Oct 20, 2022
@leehack
Copy link
Author

leehack commented Oct 20, 2022

For the flutter run -v log
test.log

So basically it's reproducible with this configuration.
Dependencies

  firebase_core: ^2.0.0
  cloud_functions: ^4.0.1

Podfile

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => 10.0.0

I also confirm that without pre-compiled, it works.

@russellwheatley
Copy link
Member

@leehack If you include cloud_firestore in the pubspec. Do you still get the same error?

@leehack
Copy link
Author

leehack commented Oct 20, 2022

@russellwheatley I guess you are asking if cloud_firestore and cloud_functions are together in the dependency, right? It's still failing. I pushed a PR:#9765
Probably it's what's missing.

@russellwheatley
Copy link
Member

russellwheatley commented Oct 20, 2022

Why would you include this line in your Podfile:

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => 10.0.0

if you're not using Firestore? That's what I don't understand.

@leehack
Copy link
Author

leehack commented Oct 20, 2022

Ah. My project uses firestore and the cloud function both.
In the example, I added it for testing even though I didn't include the firestore to understand what causes the issue.

@russellwheatley russellwheatley self-assigned this Oct 20, 2022
@russellwheatley
Copy link
Member

@leehack I've reproduced with both dependencies included in the same project. Thanks for digging into this and reporting on your findings!

Unfortunately, your PR isn't the solution. It's undefined symbols coming from Firestore itself 🤔, not a third party dependency (i.e. nanopb). So I'll close it out and dig into it a bit further.

@danagbemava-nc danagbemava-nc added plugin: cloud_firestore platform: ios Issues / PRs which are specifically for iOS. and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Oct 20, 2022
@nerder
Copy link
Contributor

nerder commented Oct 20, 2022

Hey, I had the same problem and I've opened an issue here: firebase/firebase-ios-sdk#10383

The issue is only happening with 10.0.0 but not with 9.6.0 also fetched using the following code:

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '9.6.0'

@jslattery26
Copy link

jslattery26 commented Oct 20, 2022

@russellwheatley
Here are my dependencies in case it helps

  cloud_firestore: ^4.0.1
  cloud_functions: ^4.0.1
  firebase_core: ^2.0.0
  firebase_auth: ^4.0.1
  firebase_dynamic_links: ^5.0.1
  firebase_messaging: ^14.0.1
  firebase_storage: ^11.0.1
  firebase_analytics: ^10.0.1
  firebase_crashlytics: ^3.0.1
  firebase_remote_config: ^3.0.1

@leehack
Copy link
Author

leehack commented Oct 20, 2022

@nerder I think 10.0.0 is a requirement for cloud_firestore-4.0.1. so it won't build with 9.6 if you use it.

Semantic Issue (Xcode): Use of undeclared identifier 'FIRAggregateQuery'
/Users/jhin.lee/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-4.0.1/ios/Classes/FLTFirebaseFirestorePlugin.m:546:2


Semantic Issue (Xcode): Use of undeclared identifier 'aggregateQuery'
/Users/jhin.lee/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-4.0.1/ios/Classes/FLTFirebaseFirestorePlugin.m:546:21


ARC Semantic Issue (Xcode): No visible @interface for 'FIRQuery' declares the selector 'count'
/Users/jhin.lee/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-4.0.1/ios/Classes/FLTFirebaseFirestorePlugin.m:546:45


Semantic Issue (Xcode): Use of undeclared identifier 'aggregateQuery'
/Users/jhin.lee/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-4.0.1/ios/Classes/FLTFirebaseFirestorePlugin.m:548:3

@nerder
Copy link
Contributor

nerder commented Oct 20, 2022

@leehack, yes I know I had to revert all the firebase dependencies in the package.yml in order to make it work.

While I was attempting to build it using 10.0.0 I was using all the firebase dependencies for flutter to the latest version.

Here an example

Working 👌🏼

pubspec.yml

  cloud_firestore: ^3.1.13
  cloud_functions: ^3.2.13
  firebase_analytics: ^9.1.6
  firebase_auth: ^3.3.16
  firebase_core: ^1.15.0
  firebase_crashlytics: ^2.7.1
  firebase_dynamic_links: ^4.2.1
  firebase_messaging: ^11.2.15
  firebase_storage: ^10.2.14

PodFile

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '9.6.0'

Broken 🙅🏼

pubspec.yml

  cloud_firestore: ^4.0.1
  cloud_functions: ^4.0.1
  firebase_analytics: ^10.0.1
  firebase_auth: ^4.0.1
  firebase_core: ^2.0.0
  firebase_crashlytics: ^3.0.1
  firebase_dynamic_links: ^5.0.1
  firebase_messaging: ^14.0.1
  firebase_storage: ^11.0.1

PodFile

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.0.0'

@mminhlequang
Copy link

any update?

@russellwheatley
Copy link
Member

Follow here for updates: invertase/firestore-ios-sdk-frameworks#62

If you want a quick fix, remove this line from your Podfile:

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => 10.0.0

@russellwheatley
Copy link
Member

russellwheatley commented Oct 26, 2022

Hey folks, I think I have a fix at least my project builds successfully. If you want details then please read here.

Update your Podfile to use this branch instead. Let me know if it works for you:

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => "@russell/ios-10"

Thanks 🙏

@mikehardy
Copy link
Contributor

mikehardy commented Oct 26, 2022

There is a PR for the upstream issue if you are really struggling with this and want to get early access. Use this now instead:

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => '@russell/ios-10'

NOTE

  • this will cause your pod install command to download the whole firestore-ios-sdk-frameworks repo to access the branch, the repo is pretty big, implying lots of network traffic usage and disk usage (and time, depending on network capacity). You may not be sensitive to that, but you should know that is a tradeoff
  • this branch may disappear after the PR is merged though we will try to keep it alive until release of firebase-ios-sdk 10.1.0 when hopefully this fix in the PR is in place for the normal process of just pulling the tag

Those warnings aside, if you try it and have any problem please drop a comment on the PR! invertase/firestore-ios-sdk-frameworks#63

If you try it and it works, all hail @russellwheatley 🏆 😄

@leehack
Copy link
Author

leehack commented Oct 26, 2022

Nice job @russellwheatley !! Thanks a lot!
Just for people who struggle with the downloading part. This also works to avoid downloading the whole repository.

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "@russell/ios-10"

@nilsreichardt
Copy link
Contributor

10.1.0 of firestore-ios-sdk has been released. However, using this version in the Podfile throws this error:

[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":
  In Podfile:
    FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.1.0`)

    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 4.0.3, which depends on
      Firebase/Firestore (= 10.0.0) was resolved to 10.0.0, which depends on
        FirebaseFirestore (~> 10.0.0)

I think we need to bump the for Firestore, right?

@mikehardy
Copy link
Contributor

@nilsreichardt they do all need to coincide yes, and sometimes firebase-ios-sdk (or firebase-android-sdk) releases and FlutterFire does not release immediately. If you must have the new features in the underlying SDK and are willing to assume the risk of incompatibilities I believe you may override the SDK versions.

The podspec shows that it will look for a specific variable in your Podfile and use the version provided

if defined?($FirebaseSDKVersion)
Pod::UI.puts "#{pubspec['name']}: Using user specified Firebase SDK version '#{$FirebaseSDKVersion}'"
firebase_sdk_version = $FirebaseSDKVersion

@leehack
Copy link
Author

leehack commented Nov 1, 2022

I have tested 10.1.0 with the latest flutter fire dependencies. The build works now.
I think we can close this issue now.

@leehack leehack closed this as completed Nov 1, 2022
@danagbemava-nc danagbemava-nc added the resolution: solution-provided A solution has been provided in the issue. label Nov 2, 2022
@rhc
Copy link

rhc commented Nov 2, 2022

Hi @leehack ,

Can you indicate which latest flutter fire dependencies you use to have a successful test? I am still struggling with the issue

@leehack
Copy link
Author

leehack commented Nov 3, 2022

@rhc I'm using everything latest with 10.1.0.
firebase_core
firebase_auth
firebase_analytics
firebase_crashlytics
firebase_dynamic_links
firebase_messaging
cloud_firestore
cloud_functions

Have you tried cleaning?

rm -rf build
rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/.pub-cache/hosted/pub.dartlang.org/
pod cache clean --all
flutter clean
flutter pub get
pod repo update
pod install

@rhc
Copy link

rhc commented Nov 3, 2022

@leehack

I cleaned up with the steps you are proposing. But without joy :=((
I got the following error message
[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore": In Podfile: FirebaseFirestore (fromhttps://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag 10.1.0)

cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 4.0.3, which depends on
  Firebase/Firestore (= 10.0.0) was resolved to 10.0.0, which depends on
    FirebaseFirestore (~> 10.0.0)

`
However, when I used

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "@russell/ios-10"

Please find below the firebase versions I am using. Can you share yours so I can try again?

cloud_firestore: ^4.0.3
cloud_functions: ^4.0.3
firebase_auth: ^4.1.0
firebase_core: ^2.1.1
firebase_storage: ^11.0.3

Thank you in advance

@leehack
Copy link
Author

leehack commented Nov 3, 2022

@rhc Probably it's related to the SDK version overriding.
Here is my Podfile if you want to try it out.

# Override Firebase SDK Version
$FirebaseSDKVersion = '10.1.0'
# Uncomment this line to define a global platform for your project
platform :ios, '13'

# 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
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
  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|
    target.build_configurations.each do |config|
      # Using the un-qualified names means you can swap in different implementations, for example ccache
      # https://reactnative.dev/docs/0.69/build-speed#xcode-specific-setup
      config.build_settings["CC"] = "clang"
      config.build_settings["LD"] = "clang"
      config.build_settings["CXX"] = "clang++"
      config.build_settings["LDPLUSPLUS"] = "clang++"
      # config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
    end
    flutter_additional_ios_build_settings(target)
  end
end

@rhc
Copy link

rhc commented Nov 4, 2022

@leehack Thank you very much. Your Podfile config works for me!

@emileswain
Copy link

$FirebaseSDKVersion = '10.1.0'

Its not immediately obvious that the above line $FirebaseSDKVersion = '10.1.0' actually does more than what you may think it does in the Podfile. That definition is actually, and really quite importantly, used by other files (i.e. yourproject/ios/.symlinks/plugins/cloud_firestore/ios/cloud_firestore.podspec ) which makes everything work.

I thought you'd just created a convenience variable, didn't realise that it actually effected other scripts.

@RoyalCoder88
Copy link

Hi friends,

I have the same issue,
I updated the firestore-ios-sdk-frameworks from 9.6.0 to 10.0.0.

Please help me or guide me on how to fix this issue, thanks in advance!

My firebase packages: versions:

firebase_core: ^2.1.1
cloud_functions: ^4.0.3
firebase_messaging: ^14.0.4
firebase_in_app_messaging: ^0.7.0+4
cloud_firestore: ^4.0.4
firebase_storage: ^11.0.4
firebase_auth: ^4.1.1
firebase_dynamic_links: ^5.0.4
google_sign_in: ^5.4.2
firebase_analytics: ^10.0.4
google_mobile_ads: ^2.2.0

My flutter doctor -v:
[✓] Flutter (Channel stable, 3.3.7, on macOS 13.0 22A380 darwin-arm, locale en-GB)
• Flutter version 3.3.7 on channel stable at /Users/razvanu/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision flutter/flutter@e99c9c7 (9 days ago), 2022-11-01 16:59:00 -0700
• Engine revision 857bd6b74c
• Dart version 2.18.4
• DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/razvanu/Library/Android/sdk
• Platform android-33, build-tools 32.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
• Xcode at /Applications/Xcode-14.1.0-Release.Candidate.2.app/Contents/Developer
• Build 14B47b
• CocoaPods version 1.11.3

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.73.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.52.0

[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
• All required HTTP hosts are available

• No issues found!

Please help me or guide me how to fix this issue, thanks in advance!

@mikehardy
Copy link
Contributor

@RoyalCoder88 I suggest you update flutterfire (which has a new flutterfire update - or is it flutterfire upgrade? - command) to all current versions. A version with 10.1.0 firebase-ios-sdk was released, and it should fix the problems you are seeing

@isAlmogK
Copy link

I'm running into the same issue. Has this been fixed? I'm on the latest versions regrading Flutter Fire and Firebase packages

!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":
      In Podfile:
        FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.0.0`)

        cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 4.1.0, which depends on
          Firebase/Firestore (= 10.2.0) was resolved to 10.2.0, which depends on
            FirebaseFirestore (~> 10.2.0) 

@k-mithilesh
Copy link

k-mithilesh commented Nov 23, 2022

I'm running into the same issue.

My firebase packages:

firebase_core:
cloud_firestore:
firebase_storage:
firebase_auth:
firebase_messaging:
google_ml_kit:
#google_mlkit_text_recognition:

pod install

Analyzing dependencies
cloud_firestore: Using Firebase SDK version '10.2.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '10.2.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.2.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.2.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.2.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
In Podfile:
firebase_auth (from .symlinks/plugins/firebase_auth/ios) was resolved to 4.1.3, which depends on
Firebase/Auth (= 10.2.0) was resolved to 10.2.0, which depends on
FirebaseAuth (~> 10.2.0) was resolved to 10.2.0, which depends on
GTMSessionFetcher/Core (< 4.0, >= 2.1)

google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.5.0, which depends on
  GoogleMLKit/TextRecognition (~> 3.2.0) was resolved to 3.2.0, which depends on
    MLKitTextRecognition (~> 1.4.0-beta6) was resolved to 1.4.0-beta6, which depends on
      MLKitVision (~> 4.2) was resolved to 4.2.0, which depends on
        GTMSessionFetcher/Core (~> 1.1)

my app works after removing google_ml_kit and google_mlkit_text_recognition.
Please help me or guide me on how to fix this issue.

@motucraft
Copy link

@k-mithilesh
Copy link

@k-mithilesh How about this? https://issuetracker.google.com/issues/254418199#comment48

Thanks! it worked for me.

@firebase firebase locked and limited conversation to collaborators Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: ios Issues / PRs which are specifically for iOS. plugin: cloud_firestore resolution: solution-provided A solution has been provided in the issue. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests