PCH File in Xcode 6

  1. Make new file: ⌘cmd+N
  2. iOS/Mac > Other > PCH File > YourProject-Prefix.pch.
  3. Make sure you display “All” and not “Basic”. (Blue buttons)
  4. Project > Build Settings > Search: “Prefix Header”.
  5. Under “Apple LLVM 7.0” you will get the Prefix Header key.
  6. Type file directory. e.g: “$(SRCROOT)/$(PROJECT_NAME)/ProjectName-Prefix.pch”.
  7. Clean project: ⌘cmd+⇧shift+K
  8. Build project: ⌘cmd+B

Prefix Header Image

Leave a Comment