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 iOS Tools CocoaPods CocoaPods

Tom Jenkins
Tom Jenkins
3,886 Points

How to work cocoa pods?

I've followed the steps on this video, opening terminal and downloading cocoapods, and have also got as far as putting the example file into terminal. When i type pod into terminal to install the project dependencies, it deosnt show up as it does on the video and it is preventing me from going any furthers i can't follow any more steps. any help is much appreciated.

Almas Adilbek
Almas Adilbek
4,416 Points

When you type pod ( I guess you type pod install? ) and hit enter, is there any message in response?

Tom Jenkins
Tom Jenkins
3,886 Points

I haven't tried pod install but when i just type in pod it just comes up with the long list of +help +install etc.

Almas Adilbek
Almas Adilbek
4,416 Points

Just try it ;) if it returns help tips automatically when you just typed pod, then you may use this trick: Open text editor, type pod install, copy it to clipboard, then goto terminal and paste in command line, pod install should run automatically.

Tom Jenkins
Tom Jenkins
3,886 Points

I've already sorted it, turns out i didn't download cocoa pods properly. Thanks for your help :)

1 Answer

I usually fix issues with pod install followed with a pod update.