Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a prefix.pch file for a duplicated target

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.

like image 734
MacN00b Avatar asked Jul 16 '11 05:07

MacN00b


1 Answers

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.

like image 195
VenoMKO Avatar answered Nov 15 '22 17:11

VenoMKO