本文主要是介绍升级cocoapods时报错,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
升级代码:sudo gem install -n /usr/local/bin cocoapods
报错内容:
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.3.0/gems/ffi-1.12.2/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20200410-3170-1yt5l69.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.hextconf failed, exit code 1Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.12.2 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/ffi-1.12.2/gem_make.out
解决办法参考:https://blog.csdn.net/LQMIKU/article/details/105047498。
问题:curl -L https://get.rvm.io | bash -s stable 命令失败
报错内容:
rl: (7) Failed to connect to get.rvm.io port 443: Operation timed out
或
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to get.rvm.io:443
解决办法:参考https://blog.csdn.net/StudyLww/article/details/90749682
这篇关于升级cocoapods时报错的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!