現状
FirebaseFirestoreをFlutterに導入してエミュレート時に以下エラーが起こりました。
[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore": In snapshot (Podfile.lock): FirebaseFirestore (= 1.18.0, ~> 1.18.0) In Podfile: FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `8.12.1`) None of your spec sources contain a spec satisfying the dependencies: `FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `8.12.1`), FirebaseFirestore (= 1.18.0, ~> 1.18.0)`. Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. To update the CocoaPods specs, run: pod repo update Error running pod install Error launching application on iPhone 12 Pro Max.
podFileFileには
# Uncomment this line to define a global platform for your project platform :ios, '13.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.12.1' flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end
と記載していました。
エラー対処後
FirebaseFirestoreを1.18.0に変更にしたら解決するとみたので変更したら
以下のエラーになりました。
[!] Error installing FirebaseFirestore [!] Failed to download 'FirebaseFirestore': [!] /usr/local/bin/git clone https://github.com/invertase/firestore-ios-sdk-frameworks.git /var/folders/6m/845_xzt17lz6cp6wv7185thr0000gn/T/d20220210-75304-fqp0kh --template= --single-branch --depth 1 --branch 1.18.0 Cloning into '/var/folders/6m/845_xzt17lz6cp6wv7185thr0000gn/T/d20220210-75304-fqp0kh'... warning: Could not find remote branch 1.18.0 to clone. fatal: Remote branch 1.18.0 not found in upstream origin
疑問
FirebaseFirestoreをこんなにも古いバージョンをお勧めしてくるのも謎ですし、
CocoaPodsの設定で問題があるのか、gitに問題があるのか検討がつきません。
どうかご教授をよろしくお願いします
回答1件
あなたの回答
tips
プレビュー