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

Pod! Help!

so i typed cd, drag and dropped example project into the terminal, typed pod install, and the results were 'Updating local specs repositories' and then nothing shows up.... What does that mean..... I am suppose to be downloading the project dependencies into my project... What should I do?

BTW: I already typed pod... it didn't work so I chose pod install instead

Hi is your terminal still blank?

ok, just so I'm on the right page, your installing cocapods on your mac? which task/track's instructions were you following? just so I know what commands you have been asked to enter.

@Bobkingstone Ok now it says 'unable to find specification for 'SamGradientView' Cocoapods was not able to update the 'master' repo. If this is an unexpected issue & persists you can inspect it running 'pod repo update --verbose'

I was watching a video from

https://teamtreehouse.com/library/ios-tools/cocoapods/cocoapods

I was told to create a PodFile in my Xcode project.. Then go to the terminal type cd and drag and drop the Xcode project file in the terminal.. Then click enter and type pod install or pod (either one).. When I did.. I got the error written above..

2 Answers

ok, thats frustrating, try running pod setup in the same directory, reading the documentation this should setup the master repo, if this fails then it may be case of uninstalling and reinstalling cocoa pods to see if it installed correctly.

If this doesn't work then I'm at a loss, my next port of call would be stack overflow, if you can't get an answer on there then theres something very wrong.

Sorry can't be more help Bob

Thank you! I finally downloaded the pod!

Ok, just tried it myself and it worked fine (typical), one thing if you check your podfile, have you typed 'SAMGradientView' or 'SamGradientVew'? I find some languages to be picky about the use of capitals, specially as the error message says it can't find the specification for 'SamGradientView'.

I used 'SAMGradientView' and it is still unable to find a specification for 'SAMGradientView' Cocoapods was not able to update the 'master' repo. Same error.