CocoaPods folder does not exist / permissions error
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!
cocoaPods pod install Permission denied
I solved this problem by running the following command:
sudo chown -R $USER ~/Library/Caches/CocoaPods
and
sudo chown -R $USER ~/.cocoapods
Please replace username
and groupname
with your Mac login username/groupname.
CocoaPods permission denied (Errno::EACCES - Permission denied @ dir_s_mkdir)
I answered it here: CocoaPods folder does not exist / permissions error
This took me 2 full days to figure it out!
Can't run pod install - permission error
I ended up removing the "Bugsnatcher" podfile and reinstalling it. I had another error with a different podfile afterwards, but also reinstalled that one. Project built after that.
Problem with Cocoapods, showing error 'Couldn't determine repo type for URL' when installing pods
The error message says there's a permission issue:
Permission bits for '/Users/myUser/.netrc' should be 0600, but are 644
So in order to fix the permission, you should do this:
chmod 600 ~/.netrc
Then try to run pod install
again. If the root cause was really this permissions issue then everything should work.
Pod install no permission
Seems to be Privilege Read only of the project and cocoapods can create folder Pod.
Try chmod 755 /react-native-firebase-starter/ios
will give permission to create folder Pod
or clone react-native-firebase-starter on folder with permission read & write
You don't have write permissions for the /usr/bin directory. while installing Cocoapods
Try this, It worked for me
sudo gem install cocoapods -n /usr/local/bin
This answer has information on why /usr/bin
is protected.
How to install cocoa pods
The problem is that you don't have permissions to run executables from /usr/bin
, so you need to pass folder where to install cocoapods
with proper permissions.
There are 2 ways:
Create new folder for GEM_HOME
mkdir -p $HOME/Software/ruby
export GEM_HOME=$HOME/Software/ruby
gem install cocoapods
When installation finished
export PATH=$PATH:$HOME/Software/ruby/bin
Install Cocoa Pods to /usr/local/bin
sudo gem install cocoapods -n /usr/local/bin
-n
flag tells where binary files will be located.
Workspace created by cocoapods is locked
I had this problem recently. I don't know about the missing frameworks, but if you go to your project folder within terminal and modify the permissions on the project files, you should be able to open the project. I personally had to modify multiple files and folders to be able to get it to stop asking me if I want to unlock my files.
Steps that Worked for Me:
Use the terminal to go to the folder that contains the xcworkspace file. Type
sudo chmod 777 NameOfYourWorkspaceFile.xcworkspace
(Please don't literally use that file name unless that's what your xcworkspace file is called). This should change the permissions for your entire workspace, but you will still have the unlock problem with your Pods project.
From within the same directory, you can do another chmod on the Pods folder like so:
sudo chmod 777 Pods
After that, go into your Pods folder by typing "cd Pods" and then modify the permissions on your Pods.xcodeproj file as so:
sudo chmod 777 Pods.xcodeproj
Like I said previously, these permission changes were enough to get xCode to stop asking me if I want to unlock my projects. I don't know if it will be enough for you though. Hopefully it helps!
Related Topics
Rails 7 Signup Form Doesn't Show Error Messages
Ruby on Rails - $ Rails Server Fails Because Uglifier Gem Could Not Be Found
How to Make a Ruby Script Using Trollop for Command Line Parsing
Error Creating Rails Db Using Rake Db:Create
Rails - Multi Tenant Application with Customization Framework
Having Difficulty Accessing Validation Errors in Sinatra
Rails 4 Error with Every Command "'Load': No Implicit Conversion of Nil into String" (MAC Os X 10.9)
How Does Count Method Works in Ruby
Cron Is Running in Home Directory Instead of File Directory
Shortening Socket Timeout Using Timeout::Timeout(N) Does Not Seem to Work for Me
Advice on How to Validate Names and Surnames Using Regex
Nanoc Changing the Base Path When Deploying Page in Github
Ruby 'Require' Call Fails on Custom Code
Controller Method #Show Getting Called
Rails 4 - Pundit - Scoped Policy for Index
Accessing JSON Objects in Ruby
Ruby: How Does Constant-Lookup Work in Instance_Eval/Class_Eval