10
votes

I just duplicated my target of my game to create a lite version. I want to define in the prefix.pch of the lite version that it is the lite version. The only problem is I have a prefix.pch file for my main target but not for the new one. Also in the new target, the prefix header is listed as the main targets prefix.pch. How do I create a new one? Thanks.

1

1 Answers

19
votes

Try this:

  1. Copy your prefix.pch and rename it
  2. Select your project file in "Project navigator"
  3. Select your new target and go to "Build settings"
  4. Search option called "GCC_PREFIX_HEADER" and set its value to your copied .PCH name

From now your copied .PCH will be used with your second target.