Skip to content
Tzu-ping Chung edited this page Jul 21, 2015 · 2 revisions

Xcode shows error Dependency/peg-markdown-highlight/greg.c:3:10: 'stdio.h' file not found.

You need to install “command-line tools” to build dependencies. If you’re on OS X 10.9 (Mavericks) or later, install them with the following command:

xcode-select --install

If you’re on 10.8 (Mountain Lion), you may need to install command-line tools from Xcode’s Preferences, or from the installer downloaded from Apple.

Read this technical note from Apple for more detailed instructions.

Xcode shows error Command /Applications/.../yacc failed with exit code 1

This is caused by a bug in CocoaPods 0.35. You need to install an older version of CocoaPods, and use it instead:

gem install cocoapods -v 0.34.4   # Install an older version.
pod _0.34.4_ install              # Use the older version.

See this issue for detailed explanations. If you find this annoying, click this link and complain. They might need some extra push to fix this as soon as possible.

I can’t run xcode-select in the terminal.

This is possible if you’re on an old version os OS X. Read this entry.

Clone this wiki locally