CocoaPods文件夹不存在/权限错误 [英] CocoaPods folder does not exist / permissions error

查看:85
本文介绍了CocoaPods文件夹不存在/权限错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是CocoaPods的新手,我尝试在Mac上运行'pod install'来安装我的Pod,但是文件夹 /用户/用户名/库/缓存/ CocoaPods 。该文件夹甚至不存在!我是否一不小心删除了它?如何还原?
但是有一个名为 / Library / Caches 的文件夹,但是它不在我的用户名下,而是在根目录下。

I'm new to CocoaPods, I tried running 'pod install' on my Mac to install my pod, but I'm getting a permissions error with the folder /Users/username/Library/Caches/CocoaPods. That folder doesn't even exist! Did I accidentally delete it at one point? How do I restore it? There is however a folder called /Library/Caches but its not under my username, its at the root.

我有点困惑。如果有人可以按照正确的方向指导我,我将不胜感激。

I'm a little confused. If someone can just direct me in the right direction, I would really appreciate it.

以下是完整的错误消息:

Here is the full error message:

Errno::EACCES - Permission denied @ dir_s_mkdir - /Users/nachshonfertel/Library/Caches/CocoaPods


推荐答案

原来是权限错误。我认为不存在的文件夹被隐藏在finder> Go>(按住选项键)库中。

Turns out it was a permissions error. And the folder I thought didn't exist, was hidden in finder > Go > (Hold Down Option Key) Library

花了我整整2天的时间才弄清楚!

Took me 2 full days to finally figure it out!

这篇关于CocoaPods文件夹不存在/权限错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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