sudo gem install cocoapods 1. 对于4.10.11以上,上面的命令是不生效了,因为10.11把cocoapods直接干掉了 sudo gem install -n /usr/local/bin cocoapods 再加一句,完美解决 sudo xcode-select --switch /Applications/Xcode.app 1. 2. 3. 在终端中输入如下命令来完成安装: //将 CocoaPods Specs repository复...
$ gem install cocoapods --user-install 更新成功 Installing ri documentation for cocoapods-core-1.12.1 Parsing documentation for cocoapods-1.12.1 Installing ri documentation for cocoapods-1.12.1 Done installing documentation for rexml,nanaimo,colored2,claide,atomos,xcodeproj,ruby-macho,nap,molinillo,gh...
二、解决macOS Catalina 安装cocoapods报错,macOS 10.15,使用brew安装cocoapods 1、以下2种方式都先会去下载Homebrew(本地路径:/usr/local/Homebrew,建议手动下载再复制进来) 方式一:# brew cleanup -d -v# brew install cocoapods方式二:# ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew...
sudo gem install cocoapods 失败 首先去官网下载源码包 https://cmake.org/download/ 然后输入以下命令 $tar -zxvf xx.tar.gz $./bootstrap $make $make install 1. 2. 3. 4. 在其中可能会遇到一些问题,比如 Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please...
针对你遇到的 sudo gem install cocoapods 没反应的问题,可以按照以下步骤进行排查和解决: 确认命令输入正确: 确保在终端中输入的命令是 sudo gem install cocoapods,并且没有额外的字符或错误。 检查网络连接: 由于安装过程需要从RubyGems服务器下载数据,因此请确保你的设备可以正常访问互联网,特别是能够访问RubyGems...
brew install cocoapods 打开Xcode 14.2编译项目时,发现它只支持arm64,不再支持arm7,不得已回退Xcode到13.4.1版本,该版本的XCode在macOS Monterey 12.6上是可用的。 在我给另外一台mac配置cocoapods时发现:macOS Monterey 12.6 + Xcode13.4.1 这样的环境下,根本就不需要另外安装ruby。执行本文开始的那三条命令,就...
sudo gem install cocoapods报错 1.删除原来的ruby源: gem sources --remove https://gems.ruby-china.com/ 2.添加国内镜像: gem sources -ahttps://gems.ruby-china.com/ 3.安装cocoapods: sudo gem install 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.6.0/gems/ffi-1.14.2/ext/ffi_c /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/...
今天pod install 报错了,记录一下解决方案 报错如下 : /Library/Ruby/Site/2.0.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundExcepti...