Search code examples
rubyxcodemacoscocoapods

CocoaPods folder does not exist / permissions error


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

Solution

  • 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

    Took me 2 full days to finally figure it out!