mrdishant/flutter_geofire

Problem using Geofire 2.0.0 on iOS

Closed this issue · 10 comments

Hi there,

When testing on iOS emulator.. I am getting this error message when running pod install on Geofire 2.0.0

[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In snapshot (Podfile.lock):
Firebase/Database (= 7.11.0)
In Podfile:
firebase_database (from .symlinks/plugins/firebase_database/ios) was resolved to 6.1.2, which depends on
Firebase/Database (= 7.11.0)
flutter_geofire (from .symlinks/plugins/flutter_geofire/ios) was resolved to 0.0.1, which depends on
GeoFire (> 4.0) was resolved to 4.1.0, which depends on Firebase/Database (> 6.0)
You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • changed the constraints of dependency Firebase/Database inside your development pod flutter_geofire.
    You should run pod update Firebase/Database to apply changes you've made.

Hopefully, the error message helps. Let me know if you want more information.
I am using these packages:
firebase_core: ^1.0.2
firebase_auth: ^1.0.1
firebase_database: ^6.1.1
flutter_geofire: ^2.0.0

On better news.. The Geofire 2.0.0 seems to work fine on Android emulators.

Same me too

Try this Geofire Fix

It says this:

[!] CocoaPods could not find compatible versions for pod "GeoFire":
In Podfile:
GeoFire (from https://github.com/mrdishant/geofire-objc, tag 4.3.0)

    flutter_geofire (from `.symlinks/plugins/flutter_geofire/ios`) was resolved to 0.0.1, which depends on
      GeoFire (~> 4.1.0)

can you try after deleting the pods folder and podfile.lock under the ios folder?

Can you share the pod file and the error log?

ive managed to get it working changing the version inside the .symlinks -> plugins -> flutter_geofire-> ios -> flutter_geofire.podspec file. changed the

s.ios.dependency 'Geofire', '> 4.1.0' to s.ios.dependency 'Geofire', '> 4.3.0'

I got this error how solove

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "GeoFire":
  In Podfile:
    GeoFire (from `https://github.com/mrdishant/geofire-objc`, tag `4.3.0`)

Specs satisfying the `GeoFire (from `https://github.com/mrdishant/geofire-objc`, tag `4.3.0`)` dependency were found, but they required a higher minimum deployment target.

pod repo update

this is my podfile

Uncomment this line to define a global platform for your project

platform :ios, '10.0'

CocoaPods analytics sends network stats synchronously affecting flutter build latency.

ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), FILE)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(FILE))
pod 'GeoFire', :git => 'https://github.com/mrdishant/geofire-objc', :tag => '4.3.0'

end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end

I changed flutter_geofire.podspec
s.dependency 'Flutter'
s.ios.dependency 'GeoFire', '~> 4.3.0'

but cann't solve

@danielwond @mrdishant Error happening again when i copy new project from old project.
This is error message.

   [!] CocoaPods could not find compatible versions for pod "Firebase/Database":
      In Podfile:
        GeoFire (from `https://github.com/mrdishant/geofire-objc`, tag `4.3.0`) was resolved to 4.3.0, which depends on
          GeoFire/Database (= 4.3.0) was resolved to 4.3.0, which depends on
        Firebase/Database (~> 7.11.0)

firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to 6.1.2, which depends on
  Firebase/Database (= 8.0.0)

I created my own git and change database version 8.0.0 so ok.Thanks.

I have the problem back again with the same error message.
Can we reopen this one or I can post a new issue. I don’t know how to do what heinzan did ta

I have the problem back again with the same error message.
Can we reopen this one or I can post a new issue. I don’t know how to do what heinzan did ta

add in your podfile

pod 'GeoFire', :git => 'https://github.com/heinzan/geofire-objc'

I changed database version.
like this
Null Safety Upgrade - Flutter 2.0 #21