Cocoapods setup stuck on pod setup command on terminal
It is not stuck. I thought the same until I went to the "Activity Monitor" of the system and checked the "Network" tab.
Then you will see that something is being downloaded. A process called git-remote-http
is in charge of this.
Just wait! It happened the same for me :)
Good luck!
Pod install is staying on Setting up CocoaPods Master repo
You could try running in verbose mode:
pod install --verbose
That'll show you what cocoa pods are up to:
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master
Cloning into 'master'...
(as suggested here)
For me the above step took quite a long time as the repo (Dec 2016) is now 1.1 GB
Why can't my terminal find Cocoapods commands?
I actually thought you'd get the "You don't have write permissions for the /usr/bin directory." error, but your successfully installing it. I'm not sure why it's installing it in and then reading from another.
Try installing in a different directory:
sudo gem install -n /usr/local/bin cocoapods
For more see here
cocoapods not installing
Using following commands, it worked for me.
sudo gem uninstall cocoapods
sudo gem install -n /usr/local/bin cocoapods
cocoapods pod install
If you encounter this error on step 2
:
ERROR: While executing gem ... (Gem::CommandLineError) Please specify at least one gem name (e.g. gem build GEMNAME)
Then try this as step 2 instead (step 3 is not needed):
gem install -n /usr/local/bin cocoapods
on mac os sierra, stuck on Setting up CocoaPods master repo
From https://stackoverflow.com/a/21852985/1033581:
on 4th Nov 2016, the repo is 1.07 GB
From https://stackoverflow.com/a/33699136/1033581:
To get a progression, you can clone master yourself:
pod repo remove master
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
pod setup
How to run CocoaPods on Apple Silicon (M1)
EDIT: I recently disabled Rosetta, and Cocoapods runs just fine with the addition of the ffi gem.
For anyone else struggling with this issue, I just found a way to solve it. In addition to running terminal in Rosetta:
- Right-click on Terminal in Finder
- Get Info
- Open with Rosetta
I installed a gem that seems to be related to the symbol not found in the error:
sudo gem install ffi
After doing this, cocoapods runs as expected.
Related Topics
How to Analyze Stack Trace Info of a Thread
"Rctbundleurlprovider.H" File Not Found - Appdelegate.M
Change Bundle Identifier in Xcode When Submitting My First App in iOS
Get Latitude/Longitude from Address
Change Order of Read Items with Voiceover
Xcode Won't Let to Build for Device After Denying Codesign to Access Keychain
Conflicting Return Type in Implementation of 'Supportedinterfaceorientations': - Warning
Warp \ Bend Effect on a Uiview
How to Set the Title of a Navigation Bar Programmatically
How to Get Enum from Raw Value in Swift
Save an Object in Nsuserdefaults and Realm
Uitableview Disable Swipe to Delete, But Still Have Delete in Edit Mode
Module Was Not Compiled for Testing' When Using @Testable
How to Use Settitletextattributes:Forstate in Uibaritem
iOS - Uiimagewritetosavedphotosalbum
Bsxpcmessage Received Error for Message: Connection Interrupted