sudo gem install cocoapods 报错

2021-12-25  本文已影响0人  默棉花开

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的

RVM官网地址

上一篇 下一篇

猜你喜欢

热点阅读