开发者

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:

  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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜