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?
Asked
Active
Viewed 3,522 times
2
-
can you show your podfile ? – Teja Nandamuri Feb 16 '16 at 19:10
-
What do you get when you run `gem environment` in the terminal? – dan Feb 16 '16 at 19:22
-
Possible duplicate of [pod install -bash: pod: command not found](http://stackoverflow.com/questions/14202255/pod-install-bash-pod-command-not-found) – Roel Koops Feb 16 '16 at 20:53
-
Found a resolution with a comment from neonichu, link: https://github.com/CocoaPods/CocoaPods/issues/3692 ; it wasn't my pod file; installing cocoapods on OS version 10.11 was the issue. Thanks. – DEVAP Feb 17 '16 at 15:26
1 Answers
0
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.

Cœur
- 37,241
- 25
- 195
- 267

vikash1307
- 272
- 2
- 12