首页 > 其他 > 详细

xcode6 使用pch出错解决办法

时间:2015-01-10 16:27:39      阅读:168      评论:0      收藏:0      [点我收藏+]

 

If you decide to add a .pch file manually and you want to use Objective-C just like before xCode 6 you will also have to import UIKit and Foundation frameworks in the .pch file. Otherwise you will have to import these frameworks manually in each header file. You can add the following code anyway as it tests for the language used:

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif

                                                             -----摘自 stackoverflow

xcode6 使用pch出错解决办法

原文:http://www.cnblogs.com/goodheart/p/4214963.html

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