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

CocoaPods :(

Ok, so I downloaded cocoa pods and created a pod file in my project I wrote

pod 'SAMGradientView'

then I went back to the terminal and typed in cd and drag and dropped the project into the terminal then clicked enter and typed pod install and it said it was analyzing dependancies but then is said

CocoaPods 0.37.0.beta.1 is available. To update use: gem install cocoapods --pre [!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org and the CHANGELOG for this version http://git.io/BaH8pQ.

[!] Unable to find a specification for SAMGradientView

Help! What does it mean and how do I fix it? (note: just typing pod won't work either)

1 Answer

Daniel Johnson
Daniel Johnson
104,132 Points

Use pod init to create your Podfile first, then add your dependencies and make sure you add them to the correct targets, and then use pod install to install the dependencies. When you need to update them use pod update.