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.71k stars 3.97k forks source link

πŸ› [firebase_auth] Getting "Property 'customAuthDomain' not found on object of type 'FIRAuth *'" error while building the app for iOS #12059

Closed SametSahin10 closed 10 months ago

SametSahin10 commented 10 months ago

Bug report

Describe the bug I'm getting the error below while running the app for iOS. On Android, it runs without issues.

Semantic Issue (Xcode): Property 'customAuthDomain' not found on object of type 'FIRAuth *'
/Users/sametsahin/.pub-cache/hosted/pub.dev/firebase_auth-4.15.2/ios/Classes/FLTFirebaseAuthPlugin.m:635:7

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

Below are the related firebase packages and their versions I'm using:

  firebase_auth: ^4.15.2
  firebase_auth_platform_interface: ^7.0.8
  firebase_core: ^2.24.2
  firebase_core_platform_interface: ^5.0.0

Steps to reproduce

Steps to reproduce the behavior:

  1. Use the ^4.15.2 version of firebase_auth
  2. Run the app on iOS

Expected behavior

The app should run without any issues.

Sample project

I've included the packages below in an example project and the app ran without issues on iOS. I don't know why I can't run my app on iOS. I'm using the same packages in my app.

  firebase_auth: ^4.15.2
  firebase_auth_platform_interface: ^7.0.8
  firebase_core: ^2.24.2
  firebase_core_platform_interface: ^5.0.0

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.16.3, on macOS 14.2 23C64 darwin-arm64, locale en-TR) ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.1.0/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/sametsahin/work/flutter. Consider adding /Users/sametsahin/work/flutter/bin to the front of your path. [βœ“] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [βœ“] Xcode - develop for iOS and macOS (Xcode 15.0.1) [βœ“] Chrome - develop for the web [βœ“] Android Studio (version 2023.1) [βœ“] VS Code (version 1.85.1) [βœ“] Connected device (3 available) [βœ“] Network resources ! Doctor found issues in 1 category. ```

Flutter dependencies

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

Click To Expand ``` Dart SDK 3.2.3 Flutter SDK 3.16.3 volt 2.0.24+336 dependencies: - after_layout 1.2.0 [flutter] - amplitude_flutter 3.16.1 [flutter flutter_web_plugins js] - another_flushbar 1.12.30 [flutter] - app_links 3.4.5 [flutter plugin_platform_interface flutter_web_plugins] - app_tracking_transparency 2.0.4 [flutter] - auto_route 7.8.4 [flutter path collection meta] - auto_size_text 3.0.0 [flutter] - auto_size_text_field 2.2.2 [flutter] - cached_network_image 3.3.0 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image] - carrier_info 2.0.7 [flutter] - centrifuge 0.11.0 [fixnum meta protobuf web_socket_channel] - cloud_firestore 4.13.5 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta] - cloud_functions 4.5.8 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter] - collection 1.18.0 - connectivity_plus 4.0.2 [flutter flutter_web_plugins connectivity_plus_platform_interface js meta nm] - contacts_service 0.6.3 [flutter collection quiver] - convert 3.1.1 [typed_data] - country_code_picker 3.0.0 [flutter collection] - cupertino_icons 1.0.6 - customizable_space_bar 0.2.0 [flutter] - darq 2.0.0 - decimal 2.3.3 [rational] - device_preview 1.1.0 [flutter flutter_localizations provider device_frame freezed_annotation json_annotation shared_preferences collection] - dio 5.4.0 [async http_parser meta path] - dropdown_button2 2.3.9 [flutter meta] - encrypt 5.0.3 [args asn1lib clock collection crypto pointycastle] - equatable 2.0.5 [collection meta] - eth_sig_util 0.0.9 [pointycastle equatable collection buffer convert] - eth_url_parser 0.0.6 [freezed_annotation json_annotation] - ethereum_addresses 1.0.2 [convert pointycastle] - fake_firebase_remote_config 2.0.0 [firebase_core firebase_remote_config flutter] - file_picker 5.5.0 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32] - firebase_analytics 10.7.4 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_auth 4.15.2 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_auth_platform_interface 7.0.8 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_core 2.24.2 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_crashlytics 3.4.8 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_dynamic_links 5.4.8 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface] - firebase_messaging 14.7.8 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - firebase_performance 0.9.3+8 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter] - firebase_remote_config 4.3.8 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface firebase_remote_config_web flutter] - fl_chart 0.63.0 [equatable flutter] - fl_country_code_picker 0.1.9 [flutter flutter_localizations scrollable_positioned_list] - flare_flutter 3.0.2 [collection flutter meta] - flex_color_scheme 7.3.1 [flex_seed_scheme flutter meta] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math web sky_engine] - flutter_branch_sdk 7.0.1 [flutter flutter_web_plugins plugin_platform_interface js] - flutter_dotenv 5.1.0 [flutter] - flutter_fgbg 0.3.0 [flutter] - flutter_form_builder 9.1.1 [flutter intl] - flutter_idensic_mobile_sdk_plugin 1.28.0 [flutter] - flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math web] - flutter_localized_locales 2.0.5 [flutter intl] - flutter_markdown 0.6.18+2 [flutter markdown meta path] - flutter_native_splash 2.3.7 [args flutter flutter_web_plugins js html image meta path universal_io xml yaml ansicolor] - flutter_overlay_loader 2.0.0 [flutter] - flutter_redux 0.10.0 [redux flutter] - flutter_riverpod 2.4.9 [collection flutter meta riverpod state_notifier] - flutter_secure_storage 8.1.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_svg 2.0.9 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler] - flutter_udid 2.0.1 [flutter crypto] - flutter_web_browser 0.17.1 [flutter] - font_awesome_flutter 10.6.0 [flutter] - form_builder_validators 9.1.0 [flutter flutter_localizations intl] - freezed_annotation 2.4.1 [collection json_annotation meta] - fuse_wallet_sdk 0.2.9 [bip32 bip39 centrifuge compute data_channel decimal dio freezed_annotation hex http json_annotation userop web3dart] - get_it 7.6.4 [async collection] - google_fonts 5.1.0 [flutter http path_provider crypto] - google_sign_in 6.1.6 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - googleapis 11.4.0 [_discoveryapis_commons http] - grouped_list 5.1.3 [flutter] - http 1.1.0 [async http_parser meta] - icloud_storage 2.2.0 [flutter plugin_platform_interface] - image_cropper 5.0.1 [flutter image_cropper_platform_interface image_cropper_for_web] - image_gallery_saver 2.0.3 [flutter] - image_picker 1.0.4 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows] - in_app_review 2.0.8 [flutter in_app_review_platform_interface] - in_app_update 4.2.2 [flutter] - injectable 2.3.2 [get_it] - internet_connection_checker 1.0.0+1 - intl 0.18.1 [clock meta path] - json_annotation 4.8.1 [meta] - keyboard_actions 4.2.0 [flutter] - lazy_load_scrollview 1.3.0 [flutter] - loader_overlay 2.3.2 [flutter back_button_interceptor] - local_auth 2.1.7 [flutter local_auth_android local_auth_ios local_auth_platform_interface local_auth_windows] - logger 1.4.0 - lottie 2.7.0 [archive flutter path vector_math] - mnid_dart 0.1.4 [base_x collection hex sha3] - modal_bottom_sheet 3.0.0-pre [flutter] - number_display 3.0.0 - package_info 2.0.2 [flutter] - path_provider 2.1.1 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - permission_handler 10.4.5 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface] - phone_number 2.0.1 [flutter meta] - pin_code_fields 8.0.1 [flutter] - pointycastle 3.7.3 [collection convert js] - qr_flutter 4.1.0 [flutter qr] - ramp_flutter 2.0.2 [flutter] - rate_my_app 2.0.0 [shared_preferences flutter_rating_bar flutter] - redux 5.0.0 - redux_logging 0.5.1 [redux logging] - redux_persist 0.9.0 [redux synchronized meta] - redux_thunk 0.4.0 [redux] - reselect 0.5.0 [memoize] - responsive_framework 1.1.1 [flutter collection] - scan 1.6.0 [flutter] - share 2.0.4 [meta mime flutter] - shared_preferences 2.2.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - shimmer 3.0.0 [flutter] - smooth_page_indicator 1.1.0 [flutter] - transfi_on_ramp_flutter_sdk 0.0.2 [flutter plugin_platform_interface] - upgrader 8.4.0 [flutter device_info_plus html http os_detect package_info_plus shared_preferences url_launcher version xml] - url_launcher 6.2.1 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - uuid 3.0.7 [crypto] - walletconnect_flutter_v2 2.1.4 [flutter web_socket_channel http cryptography convert json_annotation pointycastle x25519 bs58 ed25519_edwards event stream_channel shared_preferences universal_io stack_trace web3dart logger freezed_annotation] - webview_flutter 4.4.2 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview] dev dependencies: - auto_route_generator 7.3.2 [build source_gen analyzer path build_runner code_builder dart_style xml args glob auto_route] - build_runner 2.4.7 [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] - dependency_validator 3.2.3 [args build_config checked_yaml glob io json_annotation logging package_config path pub_semver pubspec_parse yaml] - faker 2.1.0 [crypto] - flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml] - flutter_lints 2.0.3 [lints] - flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math async boolean_selector characters collection material_color_utilities meta source_span stream_channel string_scanner term_glyph web] - freezed 2.4.5 [analyzer build build_config collection meta source_gen freezed_annotation json_annotation] - injectable_generator 2.4.1 [build source_gen path glob analyzer code_builder dart_style injectable collection recase meta] - integration_test 0.0.0 [flutter flutter_driver flutter_test path vm_service async boolean_selector characters clock collection fake_async file matcher material_color_utilities meta source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api vector_math web webdriver] - json_serializable 6.7.1 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper] - lint 2.2.0 - mocktail 1.0.1 [collection matcher test_api] dependency overrides: - intl 0.18.1 [clock meta path] transitive dependencies: - _discoveryapis_commons 1.0.6 [http http_parser meta] - _fe_analyzer_shared 64.0.0 [meta] - _flutterfire_internals 1.3.16 [collection firebase_core firebase_core_platform_interface flutter meta] - adaptive_number 1.0.0 [fixnum] - analyzer 6.2.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - ansicolor 2.0.2 - archive 3.4.9 [crypto path pointycastle] - args 2.4.2 - asn1lib 1.5.0 - async 2.11.0 [collection meta] - back_button_interceptor 6.0.2 [collection flutter] - base_x 2.0.1 - bip32 2.0.0 [pointycastle hex bs58check] - bip39 1.0.6 [pointycastle hex crypto] - boolean_selector 2.1.1 [source_span string_scanner] - bs58 1.0.2 [base_x] - bs58check 1.0.2 [hex crypto] - buffer 1.2.2 - build 2.4.1 [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.1 [built_collection built_value crypto http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.4.1 [analyzer async build collection convert crypto graphs logging package_config path pool pub_semver stream_transform yaml] - build_runner_core 7.2.11 [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.8.0 [built_collection collection fixnum meta] - cached_network_image_platform_interface 3.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.1.0 [cached_network_image_platform_interface flutter flutter_cache_manager] - 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 - cloud_firestore_platform_interface 6.0.9 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - cloud_firestore_web 3.8.9 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js] - cloud_functions_platform_interface 5.5.11 [firebase_core flutter meta plugin_platform_interface] - cloud_functions_web 4.6.11 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - code_builder 4.8.0 [built_collection built_value collection matcher meta] - compute 1.0.2 [meta] - connectivity_plus_platform_interface 1.2.4 [flutter meta plugin_platform_interface] - cross_file 0.3.3+7 [js meta] - crypto 3.0.3 [typed_data] - cryptography 2.7.0 [collection crypto ffi js meta typed_data] - csslib 1.0.0 [source_span] - dart_style 2.3.4 [analyzer args collection path pub_semver source_span] - data_channel 2.0.0+1 [meta] - dbus 0.7.10 [args ffi meta xml] - device_frame 1.1.0 [freezed_annotation flutter] - device_info_plus 9.1.1 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32 win32_registry] - device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface] - ed25519_edwards 0.3.1 [collection crypto convert adaptive_number] - eip1559 0.6.2 [http] - eip55 1.0.2 [pointycastle] - event 2.1.2 - fake_async 1.3.1 [clock collection] - ffi 2.1.0 - file 6.1.4 [meta path] - file_selector_linux 0.9.2+1 [cross_file file_selector_platform_interface flutter] - file_selector_macos 0.9.3+3 [cross_file file_selector_platform_interface flutter] - file_selector_platform_interface 2.6.1 [cross_file flutter http plugin_platform_interface] - file_selector_windows 0.9.3+1 [cross_file file_selector_platform_interface flutter] - firebase_analytics_platform_interface 3.8.4 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.5.5+11 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - firebase_auth_web 5.8.11 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser js meta] - firebase_core_web 2.10.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_crashlytics_platform_interface 3.6.16 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_dynamic_links_platform_interface 0.2.6+16 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 4.5.17 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.5.17 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - firebase_performance_platform_interface 0.1.4+16 [_flutterfire_internals firebase_core flutter plugin_platform_interface] - firebase_performance_web 0.1.4+16 [_flutterfire_internals firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins js] - firebase_remote_config_platform_interface 1.4.16 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_remote_config_web 1.4.16 [firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins js] - fixnum 1.1.0 - flex_seed_scheme 1.4.0 [collection flutter meta] - flutter_cache_manager 3.3.1 [clock collection file flutter http path path_provider rxdart sqflite uuid] - flutter_driver 0.0.0 [file flutter flutter_test fuchsia_remote_debug_protocol path meta vm_service webdriver async boolean_selector characters clock collection matcher material_color_utilities platform process source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api vector_math web] - flutter_plugin_android_lifecycle 2.0.17 [flutter] - flutter_rating_bar 4.0.1 [flutter] - flutter_secure_storage_linux 1.2.0 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_macos 3.0.1 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_platform_interface 1.0.2 [flutter plugin_platform_interface] - flutter_secure_storage_web 1.1.2 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js] - flutter_secure_storage_windows 2.1.1 [flutter flutter_secure_storage_platform_interface] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web] - frontend_server_client 3.2.0 [async path] - fuchsia_remote_debug_protocol 0.0.0 [process vm_service file meta path platform] - glob 2.1.2 [async collection file path string_scanner] - google_identity_services_web 0.2.2 [js meta] - google_sign_in_android 6.1.20 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.6.3 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.4.3 [flutter plugin_platform_interface] - google_sign_in_web 0.12.2+1 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http js] - graphs 2.3.1 [collection] - hex 0.2.0 - html 0.15.4 [csslib source_span] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image 4.1.3 [archive meta xml] - image_cropper_for_web 3.0.0 [flutter flutter_web_plugins image_cropper_platform_interface js] - image_cropper_platform_interface 5.0.0 [flutter plugin_platform_interface http] - image_picker_android 0.8.8+2 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 3.0.1 [flutter flutter_web_plugins image_picker_platform_interface mime] - image_picker_ios 0.8.8+4 [flutter image_picker_platform_interface] - image_picker_linux 0.2.1+1 [file_selector_linux file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_macos 0.2.1+1 [file_selector_macos file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_platform_interface 2.9.1 [cross_file flutter http plugin_platform_interface] - image_picker_windows 0.2.1+1 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface] - in_app_review_platform_interface 2.0.5 [flutter url_launcher plugin_platform_interface platform] - io 1.0.4 [meta path string_scanner] - js 0.6.7 [meta] - json_rpc_2 3.0.2 [stack_trace stream_channel] - lints 2.1.1 - local_auth_android 1.0.35 [flutter flutter_plugin_android_lifecycle intl local_auth_platform_interface] - local_auth_ios 1.1.5 [flutter intl local_auth_platform_interface] - local_auth_platform_interface 1.0.8 [flutter plugin_platform_interface] - local_auth_windows 1.0.10 [flutter local_auth_platform_interface] - logging 1.2.0 - markdown 7.1.1 [args meta] - matcher 0.12.16 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.5.0 [collection] - memoize 3.0.0 - meta 1.10.0 - mime 1.0.4 - nested 1.0.0 [flutter] - nm 0.5.0 [dbus] - octo_image 2.0.0 [flutter] - os_detect 2.0.1 - package_config 2.1.0 [path] - package_info_plus 4.2.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32] - package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - path 1.8.3 - path_parsing 1.0.1 [vector_math meta] - path_provider_android 2.2.1 [flutter path_provider_platform_interface] - path_provider_foundation 2.3.1 [flutter path_provider_platform_interface] - path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.1.1 [flutter platform plugin_platform_interface] - path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32] - permission_handler_android 10.3.6 [flutter permission_handler_platform_interface] - permission_handler_apple 9.1.4 [flutter permission_handler_platform_interface] - permission_handler_platform_interface 3.12.0 [flutter meta plugin_platform_interface] - permission_handler_windows 0.1.3 [flutter permission_handler_platform_interface] - petitparser 5.4.0 [meta] - platform 3.1.2 - plugin_platform_interface 2.1.7 [meta] - pool 1.5.1 [async stack_trace] - process 4.2.4 [file path platform] - protobuf 3.1.0 [collection fixnum meta] - provider 6.1.1 [collection flutter nested] - pub_semver 2.1.4 [collection meta] - pubspec_parse 1.2.3 [checked_yaml collection json_annotation pub_semver yaml] - qr 3.0.1 [meta] - quiver 3.2.1 [matcher] - rational 2.2.2 - recase 4.1.0 - riverpod 2.4.9 [meta stack_trace state_notifier] - rxdart 0.27.7 - scrollable_positioned_list 0.3.8 [flutter collection] - sec 1.1.0 [pointycastle] - sha3 0.2.0 - shared_preferences_android 2.2.1 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.3.4 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.3.2 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.3.1 [flutter plugin_platform_interface] - shared_preferences_web 2.2.1 [flutter flutter_web_plugins shared_preferences_platform_interface] - shared_preferences_windows 2.3.2 [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] - sky_engine 0.0.99 - source_gen 1.4.0 [analyzer async build dart_style glob path source_span yaml] - source_helper 1.3.4 [analyzer collection source_gen] - source_span 1.10.0 [collection path term_glyph] - sqflite 2.3.0 [flutter sqflite_common path] - sqflite_common 2.5.0+2 [synchronized path meta] - stack_trace 1.11.1 [path] - state_notifier 1.0.0 [meta] - stream_channel 2.1.2 [async] - stream_transform 2.1.0 - string_scanner 1.2.0 [source_span] - sync_http 0.3.1 - synchronized 3.1.0 - term_glyph 1.2.1 - test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - timing 1.0.1 [json_annotation] - typed_data 1.3.2 [collection] - universal_io 2.2.2 [collection meta typed_data] - url_launcher_android 6.2.0 [flutter url_launcher_platform_interface] - url_launcher_ios 6.2.1 [flutter url_launcher_platform_interface] - url_launcher_linux 3.1.0 [flutter url_launcher_platform_interface] - url_launcher_macos 3.1.0 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.2.0 [flutter plugin_platform_interface] - url_launcher_web 2.2.0 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.1.0 [flutter url_launcher_platform_interface] - userop 0.0.12 [eth_sig_util freezed_annotation http json_annotation web3dart] - vector_graphics 1.1.9+1 [flutter vector_graphics_codec] - vector_graphics_codec 1.1.9+1 - vector_graphics_compiler 1.1.9+1 [args meta path_parsing xml vector_graphics_codec path] - vector_math 2.1.4 - version 3.0.2 - vm_service 11.10.0 - wallet 0.0.12+1 [pointycastle convert eip55 sec] - watcher 1.1.0 [async path] - web 0.3.0 - web3dart 2.7.1 [pointycastle sec http uuid json_rpc_2 stream_transform stream_channel eip55 eip1559 typed_data convert async wallet] - web_socket_channel 2.4.0 [async crypto stream_channel] - webdriver 3.0.2 [matcher path stack_trace sync_http] - webview_flutter_android 3.12.1 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 2.8.0 [flutter meta plugin_platform_interface] - webview_flutter_wkwebview 3.9.4 [flutter path webview_flutter_platform_interface] - win32 5.1.1 [ffi] - win32_registry 1.1.2 [ffi win32] - x25519 0.1.1 [collection adaptive_number] - xdg_directories 1.0.3 [meta path] - xml 6.3.0 [collection meta petitparser] - yaml 3.1.2 [collection source_span string_scanner] ```

danagbemava-nc commented 10 months ago

Hi @SametSahin10, can you try clearing your pods and reinstalling them again to see if it works? Since it works with a sample project but not your main project, it might be that there's an issue with the project cache.

SametSahin10 commented 10 months ago

I've tried but no luck. Below is my Podfile. Could it be related to something in the Podfile? @danagbemava-nc

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

source 'https://cdn.cocoapods.org/'
source 'https://github.com/SumSubstance/Specs.git'

# 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
$FirebaseSDKVersion = '10.14.0'
target 'Runner' do
  use_frameworks!
  use_modular_headers!
  pod 'PhoneNumberKit/PhoneNumberKitCore', :git => 'https://github.com/marmelroy/PhoneNumberKit', :tag => '3.5.10'
  pod 'Ramp', :git => 'https://github.com/RampNetwork/ramp-sdk-ios.git', :tag => '4.0.2'
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
  pod 'Firebase/Crashlytics'
  pod 'Firebase/Analytics'
  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)
    target.build_configurations.each do |config|

      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'

      if config.build_settings['WRAPPER_EXTENSION'] == 'bundle'
        config.build_settings['DEVELOPMENT_TEAM'] = 'hidden'
      end

      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        ## dart: PermissionGroup.contacts
        'PERMISSION_CONTACTS=1',

        ## dart: PermissionGroup.camera
        'PERMISSION_CAMERA=1',

        ## dart: PermissionGroup.microphone
        'PERMISSION_MICROPHONE=1',

        ## dart: PermissionGroup.photos
        'PERMISSION_PHOTOS=1',

        ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
        # 'PERMISSION_LOCATION=1',

        ## dart: PermissionGroup.notification
        'PERMISSION_NOTIFICATIONS=1',

        ## dart: PermissionGroup.mediaLibrary
        # 'PERMISSION_MEDIA_LIBRARY=1',

        ## dart: PermissionGroup.bluetooth
        # 'PERMISSION_BLUETOOTH=1',

        ## dart: PermissionGroup.appTrackingTransparency
        # 'PERMISSION_APP_TRACKING_TRANSPARENCY=1',
      ]
    end
  end
end
danagbemava-nc commented 10 months ago

Hi @SametSahin10, what version is your FirebaseSDKVersion variable set to?

Did you start experiencing this issue after an upgrade?

In your test app, did you use the same Podfile configuration?

SametSahin10 commented 10 months ago

Removing the

$FirebaseSDKVersion = '10.14.0'

and

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'

resolved the issue. Thanks for the help @danagbemava-nc.