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

General Discussion

Bradley White
Bradley White
21,285 Points

CocoaPods install error

I've updated to OSX Yosemite and installed Xcode 6 Beta. I still use Xcode 5.x while learning how to use XC6. Im trying to use Cocoapods. I've uninstalled it already by using sudo gem uninstall cocoapods. When I try to reinstall it, it gives me the error:

Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...] /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/ext/xcodeproj/Rakefile:37:in `block in <top (required)>' Tasks: TOP => default => ext (See full trace by running task with --trace)

Anyone know how to read this error and get me going? I'm stuck until I can get Cocoapods to work again.

4 Answers

Stone Preston
Stone Preston
42,016 Points

try installing the command line tools for xcode that are available here and then try installing cocoapods again

Bradley White
Bradley White
21,285 Points

Thanks. I did that and it got me past that error. Now I have a new problem. in Terminal, after changing to the directory of the Xcode project, I type in pod just like in the video. Instead of analyzing dependencies and adding a xcworkspace, it just gives me a list of available commands. Do you have an answer for that? :-)

Stone Preston
Stone Preston
42,016 Points

hmm double check you are in the correct directory. normally you have your project folder, and inside that folder is your .xcodeproj file and another folder with the same name that contains all your project files I.E if your project is called simple_project make sure you are in /simple_project/ and not /simple_project/simple_project/. you need to be in the directory that has your .xcodeproj file.

Bradley White
Bradley White
21,285 Points

Figured it out. I now have to type in "pod install" instead of just "pod" in order for it to add the SimpleAuth/Instagram to the project.

Stone Preston
Stone Preston
42,016 Points

cool glad its working for you

Chris Brandow
Chris Brandow
702 Points

Need to update the tutorial to reflect 'pod install' instead of pod