码迷,mamicode.com
首页 > 其他好文 > 详细

xcode6 使用pch出错解决办法

时间:2015-01-10 16:29:35      阅读:171      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!