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

Cocoapods can't install in my mac

Please someone help me since i can't install cocoapods in my mac and i can't continue the photobombers track because of this problem. Any help will be appreciate.

Below is pastebin link for error given in my terminal :

(http://pastebin.com/d1drXtXf)

2 Answers

Hi David. Did you install the XCode command line tools?

Try to install it with the command on the terminal: xcode-select --install

It will prompt a dialog with instructions to install.

After install and reboot, try the command bellow to verify the instalation: xcode-select -p

It should print something like: /Applications/Xcode.app/Contents/Developer/

After that, please try to install cocoapods again.

yes, i already updated the commmand line tools in xcode but i still get the same problem.

i solved this issue by Symlinking llvm as gcc in terminal : sudo ln -s /usr/bin/llvm-gcc /usr/bin/gcc-4.2