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 Build a Photo Browser iPhone App Connecting to an API using OAuth Introducing API and OAuth 2.0

Will Macleod
PLUS
Will Macleod
Courses Plus Student 18,780 Points

when it comes to running the POD command I just get usage, commans and options, not analyzing dependencies help!

When I run the 'pod' command it doesn't create the new cocoapods photobombers file. all I get is this in terminal. I didn't forget to change the directory of terminal to /Users/alexmacleod/Desktop/Photo\ Bombers

Alexs-MacBook-Air:Photo Bombers alexmacleod$ sudo gem install cocoapods Password:

CHANGELOG:

0.33.1

Bug Fixes
  • Fix pod spec lint for json podspecs.
    [Fabio Pelosin][irrationalfab] #2157

  • Fixed downloader issues related to json podspecs.
    [Fabio Pelosin][irrationalfab] #2158

  • Fixed --no-ansi flag in help banners.
    [Fabio Pelosin][irrationalfab] #34

Successfully installed cocoapods-0.33.1 Parsing documentation for cocoapods-0.33.1 1 gem installed Alexs-MacBook-Air:Photo Bombers alexmacleod$ pod Usage:

$ pod

  CocoaPods, the Objective-C library package manager.

Commands:

+ help                Show help for the given command.
+ init                Generate a Podfile for the current directory.
+ install             Install project dependencies
+ ipc                 Inter-process communication
+ lib                 Develop pods
+ list                List pods
+ outdated            Show outdated project dependencies
+ plugins             Show available CocoaPods plugins
+ push                Temporary alias for the `pod repo push` command
+ repo                Manage spec-repositories
+ search              Searches for pods
+ setup               Setup the CocoaPods environment
+ spec                Manage pod specs
+ trunk               Interact with the CocoaPods API (e.g. publishing new
                      specs)
+ try                 Try a Pod!
+ update              Update outdated project dependencies

Options:

--silent              Show nothing
--completion-script   Print the auto-completion script
--version             Show the version of the tool
--verbose             Show more debugging information
--no-ansi             Show output without ANSI codes
--help                Show help banner of specified command

2 Answers

Robert Conti
Robert Conti
23,274 Points

Hey Alex! I had the same problem. Follow the tutorial exactly and when you are prompted to enter

$ pod

in the terminal, instead enter:

$ pod install

This should work and you should see the xcworkspace file created in the project directory. Then complete the tutorial. If this doesn't work, try starting fresh by deleting the Example Xcode project, uninstalling CocoaPods and starting the tutorial over again. You can uninstall CocoaPods in the Terminal by the following:

$ gem uninstall cocoapods

Hope this helps!

~BC