am having the same problem , using: brew install cocoapod , would install version 1.5 and I need version 1.10
even when I tried brew it installed version 1.5?????
every time I upgrade , it gives me same error msg:
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Library/Ruby/Gems/2.6.0/extensions/universal-darwin-21/2.6.0/ffi-1.15.4/mkmf.log
extconf failed, exit code 1