Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,