Issue installing and running CocoaPods on M2 Mac.
Due to my Mac being a M2 machine, I am unable to install CocoaPods via Gem. I installed CocoaPods via Homebrew but when running pod install I am just getting this error:
[!] Invalid
Podfile
file: undefined method `exists?' for File:Class.
I've done some research and many people are suggesting to downgrade the CocoaPods to 1.10.0 or a similar version but I am unable to do this via Homebrew.
Has anyone been able to get CocoaPods running on M2 machines?
Thanks