无法在El Capitan(15A279b)下执行`pod install` [英] Can not perform `pod install` under el capitan (15A279b)

查看:57
本文介绍了无法在El Capitan(15A279b)下执行`pod install`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与El Capitan一起运行 pod安装并收到此错误:

I ran pod install with El Capitan and got this error:

Errno::EPERM - Operation not permitted - /Users/../Pods/Pods.xcodeproj/xcuserdata/root.xcuserdatad

这是我的环境:El Capitan(15A279b),Xcode版本7.0(7A220),cocoapod 0.38.2。有任何想法吗?谢谢!!!

Here's my environment: El Capitan (15A279b), Xcode Version 7.0 (7A220), cocoapod 0.38.2. Any ideas? Thanks!!!

我使用xcode7(而不是6.4)的原因是,我需要将现有项目定位到iOS9进行测试。我使用El Capitan的原因是xcode7不在优胜美地下运行。而且我需要替换一个库(由cocoapod管理),该库在iOS9下不再起作用。

The reason I use xcode7 (and not 6.4) is that I need to target an existing project to iOS9 for testing. And the reason I am using El Capitan is that xcode7 doesn't run under Yosemite. And I need to replace a library (managed by cocoapod) that no longer works under iOS9.

这是我在El Capitan中安装cocoapods的方式
sudo gem install -n / usr / local / bin cocoapods 此链接建议的
卸载后无法安装可可豆荚,导致错误

Here's how I install cocoapods in El Capitan sudo gem install -n /usr/local/bin cocoapods as suggested by this link Cannot install cocoa pods after uninstalling, results in error

pod --version

返回

0.38.2

推荐答案

解决方案,修复El Capitan 10.11上的Cocoapods错误:

Solution, fix for Cocoapods error on El Capitan 10.11:

sudo gem install -n /usr/local/bin cocoapods

这篇关于无法在El Capitan(15A279b)下执行`pod install`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆