I am trying to install pod but every time I am getting following error. I tried to remove ruby, installation of cocoapods & homebrew but still is there.
Note: I am using M1 chipset.
dlopen(/Library/Ruby/Gems/2.6.0/gems/psych-4.0.3/lib/psych.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/psych-4.0.3/lib/psych.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/psych.bundle' (no such file) - /Library/Ruby/Gems/2.6.0/gems/psych-4.0.3/lib/psych.bundle (LoadError)