brew install ruby 三、重新安装一下cocoapods 不要使用sudo gem install cocoapods,这样的话可能会有一些问题 , 现在解决一下现在的问题 。 1. Uninstall Cocoapods: sudogem uninstall cocoapods 2.Install cocoapods without sudo: gem install cocoapods -V--no-ri --no-rdoc 3.Set up Cocoapods: pod s...
sudo apt-get install build-essential 1. 执行上述命令以后,我们可以看到一下信息,The following extra packages will be installed:表示所有需要再安装的依赖包。 sudo apt-get install build-essential [sudo] password for enadmin: Reading package lists... Done Building dependency tree Reading state informatio...
I tried to install cocoapods on macOS Sonoma 14.1.1 (on MacbookAir and MacMini) sudo gem install cocoapods What did you expect to happen? I expected that pod is installed width all dependencies correctly. What happened instead? I received an error message: ERROR: Error installing cocoapods...
sudo gem install cocoapods更新CocoaPods,或者sudo gem update --system更新gem。却提醒失败,无权限。 更新失败 提示无权限 但是已经加了sudo,考虑是路径问题。 解决办法 用下面的代码指定路径就能安装成功了。 sudo gem install -n /usr/bin/pod cocoapods安装CocoaPods 或者 sudo gem update -n /usr/local/bi...
51CTO博客已为您找到关于sudo gem install cocoapods 失败的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及sudo gem install cocoapods 失败问答内容。更多sudo gem install cocoapods 失败相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和
sudo xcode-select--install sudo gem install -n/usr/local/bin cocoapods 执行结果如下: 从输出可以看出:编译原生插件失败,原因是没有找到ruby.h这个头文件。在终端下cd到 /System/xxxxx/usr/lib/ruby目录下,没有找到include目录。它提示:安装ruby开发环境!
1、 尝试更新sudo gem update --system2、 查看安装详细 sudo gem install cocoapods -V3、详细使用有个链接 http://blog.csdn.net/meegomeego/article/details/24005567
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/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6...
只需要输入如下命令就可以更新你的RubyGems: sudo gem update --system 完成以上步骤后,只需要输入如下命令就可以安装CocoaPods了: sudo gem install cocoapods pod setup 第一次安装可能需要一些时间,耐心等待一下。打开终端,并且转到存放你的“swift weather”工程的文件夹目录。输入如下命令: touch Podfile open -...
I didn't have to use sudo gem install cocoapods It finally worked for me. 🎉 10 ️ 11 bryanlatten commented Jan 9, 2023 while ruby@3.1 is keg-only (at least, when i did it), rolling back to brew install ruby@3.0 was "good enough" for now. Had to re-install bundler...