google / GoogleSignIn-iOS

Enables iOS and macOS apps to sign in with Google.
https://developers.google.com/identity/sign-in/ios
Apache License 2.0
478 stars 194 forks source link

pod 'GoogleSignIn' throws JSON::ParserError - unexpected token at '' #345

Closed Abdullahfoysal closed 10 months ago

Abdullahfoysal commented 10 months ago

pod install
Analyzing dependencies

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/Users/foysalmac/.gem/bin/pod install

Report

Stack

   CocoaPods : 1.11.2
        Ruby : ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin23]
    RubyGems : 3.4.21
        Host : macOS 14.0 (23A344)
       Xcode : 15.0 (15A240d)
         Git : git version 2.39.3 (Apple Git-145)
Ruby lib dir : /usr/local/Cellar/ruby/3.2.2_1/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'HospitaLink' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for HospitaLink
  #GoogleSignIn
    pod 'GoogleSignIn'
   # pod 'GoogleSignInSwiftSupport'
   pod 'GoogleSignInSwift'

  #Networking
    pod 'Alamofire'

  #Reactive prgramming
    pod 'RxSwift', '6.2.0'
    pod 'RxCocoa', '6.2.0'
    pod "RxGesture"

  # UI
    pod 'SnapKit', '~> 5.6.0'
    pod 'DGCharts'
    pod 'SwiftMessages'

  #jwt token decode
    pod 'JWTDecode'

end

target 'HospitaLink Watch App' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for HospitaLink Watch App
  #Networking
   pod 'Alamofire'

  #Reactive prgramming
    #pod 'RxSwift', '6.2.0'
    #pod 'RxCocoa', '6.2.0'

    #jwt token decode
   pod 'JWTDecode'

end

Error

JSON::ParserError - unexpected token at ''
/Users/foysalmac/.gem/gems/json-2.6.3/lib/json/common.rb:216:in `parse'
/Users/foysalmac/.gem/gems/json-2.6.3/lib/json/common.rb:216:in `parse'
/Users/foysalmac/.gem/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification/json.rb:61:in `from_json'
/Users/foysalmac/.gem/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification.rb:748:in `from_string'
/Users/foysalmac/.gem/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification.rb:722:in `from_file'
/Users/foysalmac/.gem/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:188:in `specification'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/resolver/lazy_specification.rb:37:in `specification'
/usr/local/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/delegate.rb:348:in `block in delegating_block'
/usr/local/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/delegate.rb:349:in `block in delegating_block'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:178:in `dependencies_for'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:18:in `block in dependencies_for'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:77:in `with_no_such_dependency_error_handling'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:17:in `dependencies_for'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:809:in `block in group_possibilities'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:808:in `reverse_each'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:808:in `group_possibilities'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:779:in `possibilities_for_requirement'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:761:in `push_state_for_requirements'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:744:in `require_nested_dependencies_for'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:727:in `activate_new_spec'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
/Users/foysalmac/.gem/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:94:in `resolve'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1078:in `block in resolve_dependencies'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1076:in `resolve_dependencies'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:416:in `analyze'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240:in `resolve_dependencies'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:161:in `install!'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:52:in `run'
/usr/local/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
/Users/foysalmac/.gem/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
/Users/foysalmac/.gem/bin/pod:25:in `load'
/Users/foysalmac/.gem/bin/pod:25:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=unexpected+token+at+%27%27&type=Issues

If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

and 119 more at: https://github.com/cocoapods/cocoapods/search?q=unexpected%20token%20at%20%27%27&type=Issues&utf8=✓

[!] Automatically assigning platform iOS with version 16.0 on target HospitaLink because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

[!] Automatically assigning platform watchOS with version 9.0 on target HospitaLink Watch App because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

To Reproduce Steps to reproduce the behavior:

  1. add on podfile: pod 'GoogleSignIn'
  2. run pod install

Expected behavior install pod successfully

Environment

mdmathias commented 10 months ago

I cannot reproduce this issue and do not think the issue lies with this repo.

I searched for your error and found this issue. Seems related.