Skip to content

Instantly share code, notes, and snippets.

@vnavarro
Last active August 29, 2015 14:15
Show Gist options
  • Save vnavarro/34fec19ecb6f7c5c2cc2 to your computer and use it in GitHub Desktop.
Save vnavarro/34fec19ecb6f7c5c2cc2 to your computer and use it in GitHub Desktop.
How to create and setup a prefix header file for osx/ios
  1. In Xcode use command+n and in the file prompt select Other(either osx/ios)> PCH File.
  2. Give it a name and a target
  3. Go to the target's Build Settings and in Prefix Header config set the file path, something like this: "${PROJECT_DIR}/${PRODUCT_NAME}/PrefixHeader.pch"
  4. Change Precompile Prefix Header to YES Why?

Build Settings Info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment