cocoa pods,os x 10.11.1遇到的问题

简介:




问题1,路径有问题

/Library/Ruby/Site/2.0.0/rubygems.rb:254:in `bin_path': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)

from /usr/local/bin/pod:22:in `<main>'


解决方法,rvm install ruby-2.0.0-p643(我的版本是2.0.0,所以用ruby-2.0.0-p643,自己对应版本)

问题二:不能用/usr/bin/xcodeproj

ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

解决方案1

sudo nvram boot-args="rootless=0"

sudo reboot(执行完这两句命令以后电脑会重启)如果没有解决问题使用解决方案二

解决方案2

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

目录
相关文章
|
1月前
|
消息中间件 安全 关系型数据库
OpenIM (Open-Source Instant Messaging) Mac Deployment Guide
OpenIM (Open-Source Instant Messaging) Mac Deployment Guide
78 0
|
24天前
|
Swift
[!] Unable to determine Swift version for the following pods:
[!] Unable to determine Swift version for the following pods:
27 0
|
25天前
|
iOS开发
iOS之使用模拟器报错:resource fork, Finder information, or similar detritus not allowed完美解决方案
iOS之使用模拟器报错:resource fork, Finder information, or similar detritus not allowed完美解决方案
27 0
|
8月前
|
存储 安全 网络安全
Vercel - 一个强大的 Deployment Platform
Vercel - 一个强大的 Deployment Platform
475 0
|
Swift
Swift - 不使用pods如何正确添加类似Alamofire这样的库
Swift - 不使用pods如何正确添加类似Alamofire这样的库
107 0
Swift - 不使用pods如何正确添加类似Alamofire这样的库
|
iOS开发 Perl
iOS开发 -多Target项目如何优雅的使用pods
iOS开发 -多Target项目如何优雅的使用pods
386 0
|
JSON Kubernetes API
Kubernetes ImagePolicyWebhook与ValidatingAdmissionWebhook【3】validating_admission.go源码解析
Kubernetes ImagePolicyWebhook与ValidatingAdmissionWebhook【3】validating_admission.go源码解析
Kubernetes ImagePolicyWebhook与ValidatingAdmissionWebhook【3】validating_admission.go源码解析
|
Kubernetes 安全 容器
Kubernetes CKS【21】---Runtime Security -主机与容器行为安全分析(strace、/proc、env、falco)(1)
Kubernetes CKS【21】---Runtime Security -主机与容器行为安全分析(strace、/proc、env、falco)(1)
Kubernetes CKS【21】---Runtime Security -主机与容器行为安全分析(strace、/proc、env、falco)(1)
|
Kubernetes 安全 容器
Kubernetes CKS【21】---Runtime Security -主机与容器行为安全分析(strace、/proc、env、falco)(2)
Kubernetes CKS【21】---Runtime Security -主机与容器行为安全分析(strace、/proc、env、falco)(2)
Kubernetes CKS【21】---Runtime Security -主机与容器行为安全分析(strace、/proc、env、falco)(2)
|
Kubernetes Cloud Native 安全
Kubernetes CKS 2021【7】---Cluster Setup - Verify Platform
Kubernetes CKS 2021【7】---Cluster Setup - Verify Platform
Kubernetes CKS 2021【7】---Cluster Setup - Verify Platform

热门文章

最新文章