I have downloaded the project from github, but failed to run the project. I have installed the cocoapods on my system, but do not know how to integrate with existing projects like that.
I was facing this issue because some how my cocoapods were not properly installed. I was unable to run $pod install no pod command was working.
I have OS X El Capitan 10.11 so i run this command sudo gem install -n /usr/local/bin cocoapods and after that i move to my project directory and run pod install and works and updated my project.
Related
I hope you all are doing well.
I'm facing issue while trying to init the pod in the project. Cocoapods is already installed in the system. XCode Dev intstall is also there, In XCode in command line the xcode version is also selected. Don't know what I'm missing. I have MacOS BigSur.
If I run pod --version command on terminal it gives me version of 1.8.4.
I'm attaching the screenshot if someone has faced this issue.
I have the same issue. I solved it by following these steps:
First uninstall cocoapods with the command:
brew uninstall cocoapods
Reinstall Cocoapods:
sudo gem install cocoapods
I installed CocoaPods both using the recommended method $sudo gem install cocoapods and sudo-less method with --user-install flag, but in either case when I run $sudo cordova requirements I get the same error below:
CocoaPods: not installed
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
I even successfully ran a CocoaPods setup before running the requirements check. I have also created a .bash_profile with the following entries:
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:/Users/stephensmith/.gem/ruby/2.3.0/bin:$PATH
O/S is macOS mojave 10.14.1
Any suggestions on how to fix it?
Type following command in your terminal
cd ~/.cocoapods/repos
git clone https://github.com/CocoaPods/Specs.git
This will solve the problem in most of the cases, please see:
https://github.com/CocoaPods/CocoaPods/issues/5744
I am currently installing cocoapods in my Project.i am using xcode 6.3.1 and OS is EL Capitan version is 10.11.6
i am following this steps
sudo gem install cocoapods
pod setup
open terminal and give path of our project
pod init
when i do pod init i am getting error.i have attached screenshot.
please go through it and please let me know.thanks in advance
Try this for CocoaPod issue.
sudo gem install -n /usr/local/bin cocoapods
reference here: https://github.com/CocoaPods/CocoaPods/issues/3736
Try
sudo gem uninstall nanaimo
just delete one of the nanaimo, and keep the latest version.
I'm getting pod:command not found error when trying to run pod install for the google iOS SDK, in a swift/Xcode 7.2 project. I've created the Podfile. I have successfully installed cocoapods (.gem/ruby/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods.rb) on Mac running OSX v10.11.3. What am I doing wrong?
I tried this and it's working for me.
1) sudo mkdir -p $Home/Software/ruby
2) export GEM_HOME=$HOME/Software/ruby
3) gem install cocoapods
4) export PATH=$PATH:$HOME/Software/ruby/bin
5) pod --version
6) nano Podfile -> where you can edit your pod file. CtrlX and Press Y then press Enter.
7) pod install
it successfully installed without any error.
I just updated to the latest seed and ran cocoapods on one of my projects. Everytime I run it I get the following error:
[!] An error occurred while performing git pull on repo lcl.
[!] /usr/bin/git pull --ff-only
fatal: Not possible to fast-forward, aborting.
I've tried reinstalling cocoapods, setting up the master repo and still no luck..
Any help appreciated.
This probably means you have something stopping you from doing a git pull in the specs repository in ~/.cocoapods/repos/master. The easiest way to deal with this is just remove it:
rm -rf ~/.cocoapods
pod setup
You should try this:
Open Xcode 6
Open Preferences
Click the Locations tab
Change the Command Line Tools version to Xcode 6.0
Uninstall cocoapods
$ sudo gem uninstall cocoapods
6 Install xcodeproj
$ sudo gem install xcodeproj
Install cocoapods
$ sudo gem install cocoapods
Run pod --version to verify that it worked