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

Why is my terminal not directing me to the workspace containing the pods and my project like it does in the video?

I'm on the 3rd section (concerning APIs) of the photo browser project.

Right, I've followed everything as it is done in the video but to no avail.

I've opened my terminal, dragged my "photo bombers" file into my terminal after typing "cd " but it is not then doing what it does in the video.

In the video, the terminal directs you the newly created workspace containing the pods and the project we have been doing. In my terminal, after changing directory and typing pod, it is not doing so. Instead, it is creating a list of commands and options.

It also says after the link I dragged into the terminal (/Users/jamiebaker etc) "No such file or directory".

I am baffled and would be enormously grateful for any help.

4 Answers

try using pod install instead of pod. I just tried it and pod did not work for me either, I had to use pod install. Also be sure you named your file Podfile with an uppercase P

Thanks for getting back to me Stone.

I've made the changes you mentioned above and now it's telling me "No `Podfile' found in the current working directory" even though when I inspect it in my Finder I can see the Podfile!!

I really think for the first time Treehouse have properly screwed this one up. The bloke has just skipped over a huge and previously untouched upon part of the course. Even the video he did on CocoaPods didn't help.

Your help would again be much appreciated mate and if you could swap places with Mr. Soffles I'd appreciate it even more!!

ok. start by deleting the Pod file you currently have.

then cd into your project directory by typing cd in terminal and then navigating to your project in finder, and drag your project folder into the terminal window and hit enter. you should now be in your project directory.

create a new podfile by typing

touch Podfile

now open that podfile and add the pod you want to add to it

pod 'SAMCache'

then save the Podfile

once it has saved, go back into terminal and run the pod install command

pod install

Mate you are literally a genius.

Thanks a lot.

no problem