Open MRtootisabz opened 1 week ago
Hi @MRtootisabz, I'm unable to reproduce this issue. Could you share a complete minimal repo reproducing this issue?
@SelaseKay Just create a flutter empty project and add cloud_firestore then pod install.
Hi @MRtootisabz, I'm still unable to reproduce this issue with an new Flutter Project. Kindly upgrade your Xcode and try again.
I had the same error and I solved it by changing the following value in the Podfile platform: ios, '13.0'
Is there an existing issue for this?
Which plugins are affected?
Database
Which platforms are affected?
iOS
Description
I update cloud firestore version in my flutter project and cocoa pods in my system. then i got this error when call pod install.
JSON::ParserError - Failed to parse JSON at file: '/Users/macbookair/.cocoapods/repos/trunk/Specs/9/1/0/gRPC-Core/1.68.0/gRPC-Core.podspec.json'.
Reproducing the issue
cloud_firestore 5.5.0 cocoapods version : 1.16.2 flutter version : 3.24.5
Firebase Core version
3.8.0
Flutter Version
3.24.5
Relevant Log Output
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Uncomment this line to define a global platform for your project
platform :ios, '14.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!
flutter_install_all_ios_pods File.dirname(File.realpath(FILE)) target 'RunnerTests' do inherit! :search_paths end end
post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end
JSON::ParserError - Failed to parse JSON at file: '/Users/macbookair/.cocoapods/repos/trunk/Specs/9/1/0/gRPC-Core/1.68.0/gRPC-Core.podspec.json'.
unexpected token at '"src/core/lib/iomgr/call_combiner.' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification/json.rb:66:in'
rescue in from_json' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification/json.rb:61:in
from_json' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification.rb:759:infrom_string' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification.rb:733:in
from_file' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/source.rb:188:inspecification' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification/set.rb:58:in
block in specification_name' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification/set.rb:56:ineach' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/specification/set.rb:56:in
specification_name' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/cdn_source.rb:217:insearch' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/source/aggregate.rb:83:in
block in search' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/source/aggregate.rb:83:inselect' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-core-1.16.2/lib/cocoapods-core/source/aggregate.rb:83:in
search' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:416:increate_set_from_sources' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:385:in
find_cached_set' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:360:inspecifications_for_dependency' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:165:in
search_for' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:274:inblock in sort_dependencies' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:267:in
each' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:267:insort_by' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:267:in
sort_by!' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:267:insort_dependencies' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:60:in
block in sort_dependencies' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:77:inwith_no_such_dependency_error_handling' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:59:in
sort_dependencies' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:754:inpush_state_for_requirements' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:744:in
require_nested_dependencies_for' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:727:inactivate_new_spec' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:684:in
attempt_to_activate' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:inprocess_topmost_state' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in
resolve' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:inresolve' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/resolver.rb:94:in
resolve' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/analyzer.rb:1082:inblock in resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:in
section' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/analyzer.rb:1080:inresolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/analyzer.rb:125:in
analyze' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:422:inanalyze' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:244:in
block in resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:insection' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:243:in
resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:162:ininstall!' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command/install.rb:52:in
run' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:inrun' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:52:in
run' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/gems/cocoapods-1.16.2/bin/pod:55:in<top (required)>' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/bin/pod:25:in
load' /opt/homebrew/Cellar/cocoapods/1.16.2/libexec/bin/pod:25:in `Flutter dependencies
firebase_core: ^3.8.0 firebase_messaging: ^15.1.5
cloud_firestore: ^5.5.0
Additional context and comments
I have reported to cocoapods github page also