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 crea开发者_如何学Pythonte a new one? Thanks.
Try this:
- Copy your prefix.pch and rename it
- Select your project file in "Project navigator"
- Select your new target and go to "Build settings"
- 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.
精彩评论