7.1.0 version causing the issue undefined method `deprecator' for ActiveSupport:Module (NoMethodError) · Issue #49495 · rails/rails

Steps to reproduce running pod install which internally calls ruby. pod install --repo-update Traceback (most recent call last): 11: from /Users/xxxx/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:...