首页 > 移动平台 > 详细

iOS项目添加.pch文件 / How to add a .pch file to an iOS project

时间:2017-08-27 14:32:09      阅读:417      评论:0      收藏:0      [点我收藏+]

1.Create a .pch file.

技术分享

2.Write your macro, headfiles or something. Here is my prefixHeader.pch

技术分享

3.Choose the Project and select "Build Settings"

   >>> find with keywords "prefix"

   >>>make the "Precompile Prefix Header" is "yes".

技术分享

技术分享

4.Tell Xcode where have you put your .pch file.

   Select "Prefix Header", Double click the content

   and write "$(SRCROOT)/magicNote/prefixHeader.pch"

             or "$(PROJECT_DIR)/your Project name/your prefix file name.pch" as below. 

技术分享

 

 5.Done.Save and run.

 

iOS项目添加.pch文件 / How to add a .pch file to an iOS project

原文:http://www.cnblogs.com/cl7429/p/7440238.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!