Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20211225-28121-nm1wz4.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
这个就是gem安装有问题,,,更新rvm ,然后再升级ruby的