Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Installing and Using CocoaPods for iOS

Aravind voruganti
Aravind voruganti
437 Points

unable to install pods

while trying to install pod file im stucking here

MacBook-Pro:teja saiteja$ pod init MacBook-Pro:teja saiteja$ pod install Setting up CocoaPods master repo

3 Answers

Spencer Alderson
Spencer Alderson
2,132 Points

Hey there,

have you changed directories first? "cd /Users/yourusernamehere/yourfoldernamehere/yourFoldernamehere\ yourProjectnamehere"

1.then you do your pod init, where it creates the pod file

  1. you select the pods you wish to install i.e. " pod alamoFire"
  2. then pod install

hope that helps

Aravind voruganti
Aravind voruganti
437 Points

but where should i change the directories??

Aravind voruganti
Aravind voruganti
437 Points

is this enough..???? MacBook-Pro:~ saiteja$ cd desktop MacBook-Pro:desktop saiteja$ cd teja MacBook-Pro:teja saiteja$ pod init MacBook-Pro:teja saiteja$ pod install Setting up CocoaPods master repo

Spencer Alderson
Spencer Alderson
2,132 Points

why don't you try this rather than try to use terminal, if you're having trouble

https://cocoapods.org/app

Spencer Alderson
Spencer Alderson
2,132 Points

alternatively if you really want to use the terminal you need to type "cd " and then you can drab and drop the project file in to the terminal window then hit enter, then do your pod init etc,