Skip to content
Tzu-ping Chung edited this page Aug 15, 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.x and 0.36.x. You need to install an older version of CocoaPods, and use it instead. We recommend using Bundler to deal with this problem:

bundle install
bundle exec pod install    # Instead of just "pod install"

Xcode shows error ARC forbids Objective-C objects in structs and ARC forbids Objective-C objects in unions

This is caused by an upstream bug in Handlebars-ObjC when working with CocoaPods. The workaround is to use an older version of CocoaPods. We recommend using Bundler to deal with this problem:

bundle install
bundle exec pod install    # Instead of just "pod install"

See this issue for detailed technical information.

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