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_remote_config] CocoaPods could not find compatible versions for pod "Firebase/RemoteConfig" #9857

Closed
ziadsarour opened this issue Nov 4, 2022 · 11 comments
Labels
closed-by-bot resolution: no-response Customer did not respond after some time. Stale Issue with no recent activity type: bug Something isn't working

Comments

@ziadsarour
Copy link

ziadsarour commented Nov 4, 2022

Bug report

Describe the bug
Hi,
My app doesn't build anymore because I can't install pod for firebase_remote_config.
I've upgraded all firebase packages to latest.

rm -rf Pods && rm -f Podfile.lock && rm -rf .symlinks  && pod cache clean --all && pod deintegrate && pod install
Deintegrating `Runner.xcodeproj`
Removing `Pods` directory.

Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Analyzing dependencies
Pre-downloading: `PurchasesHybridCommon` from `https://github.com/RevenueCat/purchases-hybrid-common.git`, tag `4.3.6`
Pre-downloading: `RevenueCat` from `https://github.com/RevenueCat/purchases-ios.git`, tag `4.13.4`
cloud_functions: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
Run script to upload symbols already exists.
firebase_crashlytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_dynamic_links: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_performance: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_remote_config: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/RemoteConfig":
  In Podfile:
    firebase_remote_config (from `.symlinks/plugins/firebase_remote_config/ios`) was resolved to 3.0.4, which depends on
      Firebase/RemoteConfig (= 10.0.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/RemoteConfig (= 10.0.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

pubspec.yml

Click To Expand
version: 1.0.0+1

environment:
  sdk: ">=2.17.0 <3.0.0"

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter


  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  amplitude_flutter: 3.11.0
  auto_size_text: 3.0.0
  cached_network_image: 3.2.2
  cloud_functions: 4.0.3
  cupertino_icons: 1.0.5
  dotted_border: 2.0.0+3
  expandable_page_view: 1.0.17
  firebase_analytics: 10.0.4
  firebase_core: 2.1.1
  firebase_crashlytics: 3.0.4
  firebase_dynamic_links: 5.0.4
  firebase_performance: 0.9.0+4
  firebase_remote_config: 3.0.4
  firebase_storage: 11.0.4
  fl_chart: 0.55.2
  flutter_html: 3.0.0-alpha.6
  flutter_image_compress: 1.1.3
  flutter_local_notifications: 12.0.3
  flutter_native_timezone: 2.0.0
  timezone: 0.9.0
  flutter_spinkit: 5.1.0
  flutter_svg: 1.1.6
  google_fonts: 3.0.1
  hive_flutter: 1.1.0
  hive: 2.2.3
  http: 0.13.5
  image_picker: 0.8.6
  in_app_review: 2.0.4
  intl: 0.17.0
  jiffy: 5.0.0
  lottie: 1.4.3
  mobile_scanner: 2.0.0
  modal_bottom_sheet: 2.1.2
  path_provider: 2.0.11
  permission_handler: 10.2.0
  pretty_qr_code: 2.0.2
  purchases_flutter: 4.3.2
  quick_actions: 1.0.1
  share_plus: 6.2.0
  url_launcher: 6.1.6
  uuid: 3.0.6

# dependency_overrides:
#   flutter_svg: 1.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  logger: 1.1.0

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  build_runner: 2.3.2
  flutter_lints: 2.0.1
  hive_generator: 2.0.0
  icons_launcher: 2.0.5

Podfile

Click To Expand
# 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
  # pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.0.0'
  # pod 'FirebaseRemoteConfig', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '10.0.0'
  pod 'RevenueCat', :git => 'https://github.com/RevenueCat/purchases-ios.git', :tag => '4.13.4'
  pod 'PurchasesHybridCommon', :git => 'https://github.com/RevenueCat/purchases-hybrid-common.git', :tag => '4.3.6'

  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)
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        # 'PERMISSION_EVENTS=1', ## dart: PermissionGroup.calendar
        # 'PERMISSION_REMINDERS=1', ## dart: PermissionGroup.reminders
        # 'PERMISSION_CONTACTS=1', ## dart: PermissionGroup.contacts
        'PERMISSION_CAMERA=1', ## dart: PermissionGroup.camera
        # 'PERMISSION_MICROPHONE=1', ## dart: PermissionGroup.microphone
        # 'PERMISSION_SPEECH_RECOGNIZER=1', ## dart: PermissionGroup.speech
        'PERMISSION_PHOTOS=1', ## dart: PermissionGroup.photos
        # 'PERMISSION_LOCATION=1', ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
        'PERMISSION_NOTIFICATIONS=1', ## dart: PermissionGroup.notification
        # 'PERMISSION_MEDIA_LIBRARY=1', ## dart: PermissionGroup.mediaLibrary
        # 'PERMISSION_SENSORS=1',    ## dart: PermissionGroup.sensors
        # 'PERMISSION_BLUETOOTH=1', ## dart: PermissionGroup.bluetooth
        # 'PERMISSION_APP_TRACKING_TRANSPARENCY=1', ## dart: PermissionGroup.appTrackingTransparency
        # 'PERMISSION_CRITICAL_ALERTS=1' ## dart: PermissionGroup.criticalAlerts
      ]
    end
  end
end

Flutter doctor

Click To Expand
[✓] Flutter (Channel stable, 3.3.7, on macOS 13.0 22A380 darwin-x64,
    locale fr-FR)
    • Flutter version 3.3.7 on channel stable at
      /usr/local/Caskroom/flutter/2.8.1/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e99c9c7cd9 (2 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 31.0.0)
    • Android SDK at /usr/local/share/android-sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /usr/local/share/android-sdk
    • ANDROID_SDK_ROOT = /usr/local/share/android-sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.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 2021.2)
    • 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.12+0-b1504.28-7817840)

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.0 22A380
      darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome
      107.0.5304.87

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

• No issues found!

Flutter dependencies

Click To Expand
Dart SDK 2.18.4
Flutter SDK 3.3.7
app 1.0.0+1

dependencies:
- amplitude_flutter 3.11.0 [flutter flutter_web_plugins js]
- 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]
- cloud_functions 4.0.3 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- cupertino_icons 1.0.5
- dotted_border 2.0.0+3 [flutter path_drawing]
- expandable_page_view 1.0.17 [flutter]
- firebase_analytics 10.0.4 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_core 2.1.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 3.0.4 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_dynamic_links 5.0.4 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
- firebase_performance 0.9.0+4 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter]
- firebase_remote_config 3.0.4 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface firebase_remote_config_web flutter]
- firebase_storage 11.0.4 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- fl_chart 0.55.2 [flutter equatable]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_html 3.0.0-alpha.6 [html csslib collection numerus flutter]
- flutter_image_compress 1.1.3 [flutter]
- flutter_local_notifications 12.0.3 [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_native_timezone 2.0.0 [flutter_web_plugins flutter js]
- flutter_spinkit 5.1.0 [flutter]
- flutter_svg 1.1.6 [flutter meta path_drawing vector_math xml]
- google_fonts 3.0.1 [flutter http path_provider crypto]
- hive 2.2.3 [meta crypto]
- hive_flutter 1.1.0 [flutter hive path_provider path]
- http 0.13.5 [async http_parser meta path]
- image_picker 0.8.6 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface]
- in_app_review 2.0.4 [flutter in_app_review_platform_interface]
- intl 0.17.0 [clock path]
- jiffy 5.0.0 [intl]
- lottie 1.4.3 [archive flutter path vector_math]
- mobile_scanner 2.0.0 [flutter flutter_web_plugins js]
- modal_bottom_sheet 2.1.2 [flutter]
- 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]
- permission_handler 10.2.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface]
- pretty_qr_code 2.0.2 [flutter qr]
- purchases_flutter 4.3.2 [flutter freezed_annotation json_annotation]
- quick_actions 1.0.1 [flutter quick_actions_android quick_actions_ios quick_actions_platform_interface]
- share_plus 6.2.0 [cross_file meta mime flutter flutter_web_plugins share_plus_platform_interface file url_launcher_web url_launcher_windows url_launcher_linux url_launcher_platform_interface ffi win32]
- timezone 0.9.0 [path]
- 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]
- uuid 3.0.6 [crypto]

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]
- 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]
- hive_generator 2.0.0 [build source_gen hive analyzer source_helper]
- icons_launcher 2.0.5 [args image path universal_io yaml]
- logger 1.1.0

transitive dependencies:
- _fe_analyzer_shared 50.0.0 [meta]
- _flutterfire_internals 1.0.7 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- analyzer 5.2.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 3.3.1 [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.0 [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.1.0 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.3 [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.4 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 3.0.4 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- cloud_functions_platform_interface 5.1.22 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.3.11 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- code_builder 4.2.0 [built_collection built_value collection matcher meta]
- collection 1.16.0
- convert 3.0.2 [typed_data]
- cross_file 0.3.3+2 [js meta]
- crypto 3.0.2 [typed_data]
- 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]
- equatable 2.0.5 [collection meta]
- fake_async 1.3.1 [clock collection]
- ffi 2.0.1
- file 6.1.4 [meta path]
- firebase 9.0.3 [http http_parser js]
- firebase_analytics_platform_interface 3.3.12 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.1+3 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_core_platform_interface 4.5.2 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.0.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics_platform_interface 3.3.5 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_dynamic_links_platform_interface 0.2.3+20 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_performance_platform_interface 0.1.1+24 [_flutterfire_internals firebase_core flutter plugin_platform_interface]
- firebase_performance_web 0.1.1+13 [_flutterfire_internals firebase firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins js]
- firebase_remote_config_platform_interface 1.1.24 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_remote_config_web 1.1.13 [firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins js]
- firebase_storage_platform_interface 4.1.22 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.3.14 [_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_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]
- freezed_annotation 2.1.0 [collection json_annotation meta]
- frontend_server_client 3.1.0 [async path]
- glob 2.1.0 [async collection file path string_scanner]
- graphs 2.1.0 [collection]
- html 0.15.0 [csslib source_span]
- http_multi_server 3.2.1 [async]
- http_parser 4.0.1 [collection source_span string_scanner typed_data]
- image 3.2.2 [archive meta xml]
- image_picker_android 0.8.5+2 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 2.1.8 [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.1 [cross_file flutter http plugin_platform_interface]
- in_app_review_platform_interface 2.0.3 [flutter url_launcher plugin_platform_interface platform]
- io 1.0.3 [meta path string_scanner]
- js 0.6.4
- json_annotation 4.6.0 [meta]
- lints 2.0.0
- logging 1.0.2
- matcher 0.12.12 [stack_trace]
- material_color_utilities 0.1.5
- meta 1.8.0
- mime 1.0.2
- numerus 2.0.0 [characters]
- 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.19 [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.4 [flutter platform plugin_platform_interface]
- path_provider_windows 2.1.3 [ffi flutter path path_provider_platform_interface win32]
- pedantic 1.11.1
- permission_handler_android 10.2.0 [flutter permission_handler_platform_interface]
- permission_handler_apple 9.0.7 [flutter permission_handler_platform_interface]
- permission_handler_platform_interface 3.9.0 [flutter meta plugin_platform_interface]
- permission_handler_windows 0.1.2 [flutter permission_handler_platform_interface]
- 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.1 [collection meta]
- pubspec_parse 1.2.1 [checked_yaml collection json_annotation pub_semver yaml]
- qr 2.1.0 [meta]
- quick_actions_android 1.0.0 [flutter quick_actions_platform_interface]
- quick_actions_ios 1.0.1 [flutter quick_actions_platform_interface]
- quick_actions_platform_interface 1.0.2 [flutter plugin_platform_interface]
- rxdart 0.27.5
- share_plus_platform_interface 3.2.0 [cross_file flutter meta mime plugin_platform_interface path_provider uuid]
- shelf 1.3.2 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.2 [shelf stream_channel web_socket_channel]
- 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.0.3+1 [flutter sqflite_common path]
- sqflite_common 2.2.1+1 [synchronized path meta]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.1 [source_span]
- synchronized 3.0.0+2
- 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]
- timing 1.0.0 [json_annotation]
- typed_data 1.3.1 [collection]
- universal_io 2.0.4 [collection crypto meta typed_data]
- url_launcher_android 6.0.17 [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]
- vector_math 2.1.2
- watcher 1.0.1 [async path]
- web_socket_channel 2.2.0 [async crypto stream_channel]
- win32 3.0.1 [ffi]
- xdg_directories 0.2.0+1 [meta path process]
- xml 6.1.0 [collection meta petitparser]
- yaml 3.1.1 [collection source_span string_scanner]

OS

Click To Expand

MacBook Pro
13-inch, 2017, Four Thunderbolt 3 Ports
3,5 GHz Intel Core i7 double cœur
Intel Iris Plus Graphics 650 1536 Mo
16 Go 2133 MHz LPDDR3
macOS 13.0 (22A380)
Xcode Version 14.1 (14B47b)

@ziadsarour ziadsarour added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Nov 4, 2022
@darshankawar darshankawar added the triage Issue is currently being triaged. label Nov 4, 2022
@darshankawar
Copy link

@ziadsarour
Can you check this issue and underlying comments and see if they help in your case ?

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Nov 4, 2022
@ziadsarour
Copy link
Author

@darshankawar Hi, thank you for your reply.
I have tested solutions in this thread but nothing worked for me.

SDK overriding 10.1.0 + Invertase Firestore SDK 10.1.0

Podfile

Click To Expand
# Override Firebase SDK Version
$FirebaseSDKVersion = '10.1.0'

# 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
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
  # pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => "@russell/ios-10"
  # pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "@russell/ios-10"
  # pod 'FirebaseRemoteConfig', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '10.0.0'
  pod 'RevenueCat', :git => 'https://github.com/RevenueCat/purchases-ios.git', :tag => '4.13.4'
  pod 'PurchasesHybridCommon', :git => 'https://github.com/RevenueCat/purchases-hybrid-common.git', :tag => '4.3.6'

  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)
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        # 'PERMISSION_EVENTS=1', ## dart: PermissionGroup.calendar
        # 'PERMISSION_REMINDERS=1', ## dart: PermissionGroup.reminders
        # 'PERMISSION_CONTACTS=1', ## dart: PermissionGroup.contacts
        'PERMISSION_CAMERA=1', ## dart: PermissionGroup.camera
        # 'PERMISSION_MICROPHONE=1', ## dart: PermissionGroup.microphone
        # 'PERMISSION_SPEECH_RECOGNIZER=1', ## dart: PermissionGroup.speech
        'PERMISSION_PHOTOS=1', ## dart: PermissionGroup.photos
        # 'PERMISSION_LOCATION=1', ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
        'PERMISSION_NOTIFICATIONS=1', ## dart: PermissionGroup.notification
        # 'PERMISSION_MEDIA_LIBRARY=1', ## dart: PermissionGroup.mediaLibrary
        # 'PERMISSION_SENSORS=1',    ## dart: PermissionGroup.sensors
        # 'PERMISSION_BLUETOOTH=1', ## dart: PermissionGroup.bluetooth
        # 'PERMISSION_APP_TRACKING_TRANSPARENCY=1', ## dart: PermissionGroup.appTrackingTransparency
        # 'PERMISSION_CRITICAL_ALERTS=1' ## dart: PermissionGroup.criticalAlerts
      ]
    end
  end
end

Result

Click To Expand
rm -rf Pods && rm -f Podfile.lock && rm -rf .symlinks  && pod cache clean --all && pod deintegrate && pod install
Deintegrating `Runner.xcodeproj`
Removing `Pods` directory.

Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Analyzing dependencies
Pre-downloading: `FirebaseFirestore` from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.1.0`
FirebaseFirestore/AutodetectLeveldb: subspec would include leveldb if used directly or by default.
Pre-downloading: `PurchasesHybridCommon` from `https://github.com/RevenueCat/purchases-hybrid-common.git`, tag `4.3.6`
Pre-downloading: `RevenueCat` from `https://github.com/RevenueCat/purchases-ios.git`, tag `4.13.4`
cloud_functions: Using user specified Firebase SDK version '10.1.0'
firebase_analytics: Using user specified Firebase SDK version '10.1.0'
firebase_core: Using user specified Firebase SDK version '10.1.0'
Run script to upload symbols already exists.
firebase_crashlytics: Using user specified Firebase SDK version '10.1.0'
firebase_dynamic_links: Using user specified Firebase SDK version '10.1.0'
firebase_performance: Using user specified Firebase SDK version '10.1.0'
firebase_remote_config: Using user specified Firebase SDK version '10.1.0'
firebase_storage: Using user specified Firebase SDK version '10.1.0'
[!] CocoaPods could not find compatible versions for pod "Firebase/Storage":
  In Podfile:
    firebase_storage (from `.symlinks/plugins/firebase_storage/ios`) was resolved to 11.0.4, which depends on
      Firebase/Storage (= 10.1.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/Storage (= 10.1.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

I have also tried with :

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

and

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

WITHOUT Invertase Firestore SDK

Podfile

Click To Expand
# Override Firebase SDK Version
# $FirebaseSDKVersion = '10.1.0'

# 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
  # pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
  # pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :branch => "@russell/ios-10"
  # pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "@russell/ios-10"
  # pod 'FirebaseRemoteConfig', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '10.0.0'
  pod 'RevenueCat', :git => 'https://github.com/RevenueCat/purchases-ios.git', :tag => '4.13.4'
  pod 'PurchasesHybridCommon', :git => 'https://github.com/RevenueCat/purchases-hybrid-common.git', :tag => '4.3.6'

  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)
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        # 'PERMISSION_EVENTS=1', ## dart: PermissionGroup.calendar
        # 'PERMISSION_REMINDERS=1', ## dart: PermissionGroup.reminders
        # 'PERMISSION_CONTACTS=1', ## dart: PermissionGroup.contacts
        'PERMISSION_CAMERA=1', ## dart: PermissionGroup.camera
        # 'PERMISSION_MICROPHONE=1', ## dart: PermissionGroup.microphone
        # 'PERMISSION_SPEECH_RECOGNIZER=1', ## dart: PermissionGroup.speech
        'PERMISSION_PHOTOS=1', ## dart: PermissionGroup.photos
        # 'PERMISSION_LOCATION=1', ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
        'PERMISSION_NOTIFICATIONS=1', ## dart: PermissionGroup.notification
        # 'PERMISSION_MEDIA_LIBRARY=1', ## dart: PermissionGroup.mediaLibrary
        # 'PERMISSION_SENSORS=1',    ## dart: PermissionGroup.sensors
        # 'PERMISSION_BLUETOOTH=1', ## dart: PermissionGroup.bluetooth
        # 'PERMISSION_APP_TRACKING_TRANSPARENCY=1', ## dart: PermissionGroup.appTrackingTransparency
        # 'PERMISSION_CRITICAL_ALERTS=1' ## dart: PermissionGroup.criticalAlerts
      ]
    end
  end
end

Result

Click To Expand
rm -rf Pods && rm -f Podfile.lock && rm -rf .symlinks  && pod cache clean --all && pod deintegrate && pod install
Deintegrating `Runner.xcodeproj`
Removing `Pods` directory.

Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Analyzing dependencies
Pre-downloading: `PurchasesHybridCommon` from `https://github.com/RevenueCat/purchases-hybrid-common.git`, tag `4.3.6`
Pre-downloading: `RevenueCat` from `https://github.com/RevenueCat/purchases-ios.git`, tag `4.13.4`
cloud_functions: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
Run script to upload symbols already exists.
firebase_crashlytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_dynamic_links: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_performance: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_remote_config: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/RemoteConfig":
  In Podfile:
    firebase_remote_config (from `.symlinks/plugins/firebase_remote_config/ios`) was resolved to 3.0.4, which depends on
      Firebase/RemoteConfig (= 10.0.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/RemoteConfig (= 10.0.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

@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 Nov 4, 2022
@ziadsarour
Copy link
Author

I'm still stuck and can't upgrade to firebase 10.
I've reverted to previous version but it will be great if I could have the latest version before my deployment ;)
Thank you

@motucraft
Copy link

@ziadsarour
Is this the same issue? #9792
I am also in trouble. I don't even know where to report it.

@ziadsarour
Copy link
Author

@ziadsarour

Is this the same issue? #9792

I am also in trouble. I don't even know where to report it.

Hi, it might be the same issue, I also have mobile_scanner installed.

My pod error doesn't tell me anything about MLKit.

I can't test by deactivating mobile_scanner (to test if build pass) because mobile_scanner is a core feature in my app. It will be too complicated to deactivate it.

Thank you for the hint

@darshankawar
Copy link

@ziadsarour
I suggest you to narrow down this behavior by removing all third party plugins and pods one by one and see which library could be causing this issue.
I tried just with firebase_remote_config and also using mobile_scanner but was unable to see the error.
There may be a conflict with external library with firebase_remote_config or other pods you are using in podfile that could be leading the error.

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Nov 7, 2022
@ziadsarour
Copy link
Author

ziadsarour commented Nov 8, 2022

@ziadsarour

I suggest you to narrow down this behavior by removing all third party plugins and pods one by one and see which library could be causing this issue.

I tried just with firebase_remote_config and also using mobile_scanner but was unable to see the error.

There may be a conflict with external library with firebase_remote_config or other pods you are using in podfile that could be leading the error.

Thank you for the hint, I will try later because I don't have the time to test each library one by one.
I've downgraded my packages for the moment

@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 Nov 8, 2022
@darshankawar
Copy link

@ziadsarour
From your pubspec.yaml, you seem to be using specific version of Flutterfire plugins, ie, without the caret ^ sign. Can you try with ^ for all flutterfire plugins and see if it helps ?

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Nov 9, 2022
@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Nov 18, 2022
@google-oss-bot
Copy link

Hey @ziadsarour. 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!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@ziadsarour if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@darshankawar darshankawar added resolution: no-response Customer did not respond after some time. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. triage Issue is currently being triaged. labels Nov 29, 2022
@firebase firebase locked and limited conversation to collaborators Dec 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed-by-bot resolution: no-response Customer did not respond after some time. Stale Issue with no recent activity type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants