when I try to run pod init
in Catalina I get the following error:
name@name-MacBook-Pro Lab8-Firebase % pod init
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.SecurityHelper to
field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of
org.jruby.util.SecurityHelper WARNING: Use
--illegal-access=warn to enable warnings of further illegal reflective
access operations
WARNING: All illegal access operations will be denied in a future
release git version 2.29.2
RuntimeError: Failed to extract git version from `git --version` ("")
git_version at /Users/name/.rvm/rubies/jruby-
9.2.5.0/lib/ruby/gems/shared/gems/cocoapods-
1.10.0/lib/cocoapods/command.rb:128 verify_minimum_git_version! at
/Users/name/.rvm/rubies/jruby-
9.2.5.0/lib/ruby/gems/shared/gems/cocoapods-
1.10.0/lib/cocoapods/command.rb:140
run at /Users/name/.rvm/rubies/jruby-
9.2.5.0/lib/ruby/gems/shared/gems/cocoapods-
1.10.0/lib/cocoapods/command.rb:49
<main> at /Users/name/.rvm/rubies/jruby-
9.2.5.0/lib/ruby/gems/shared/gems/cocoapods-1.10.0/bin/pod:55
load at org/jruby/RubyKernel.java:1007
(root) at /Users/name/.rvm/rubies/jruby-
9.2.5.0/bin/pod:1
eval at org/jruby/RubyKernel.java:1046
<main> at /Users/name/.rvm/gems/jruby-
9.2.5.0/bin/jruby_executable_hooks:24
I have tried doing the following:
- updating the git version
- updating ruby
- reinstalling cocoapods
- reinstalling homebrew
- sudo xcode-select --install (from this SO post).
Any help would be appreciated - thanks.