Cocoapods Permission Error

Received the following error while trying to run pod install.

errno::EACCES – Permission denied @ dir_s_mkdir – /Users/<username>/.cocoapods/repos/trunk/Specs/9/3

So I had to run the command as sudo – sudo pod install. This successfully installed the pods for the project. But when trying to open the Xcode workspace, again received permission denied error for the Xcode workspace. Then following the below mentioned steps resolved the issue and I was able to open the Xcode project

  1. sudo chmod 777 <project workspace> file
  2. sudo chmod 777 <prokect.xcodeproj> file
  3. sudo chmod 777 Pods


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.