热门搜索 :
考研考公
您的当前位置:首页正文

iOS添加非(c,c++)文件引发的"NSObjCRu

来源:东饰资讯网

在新工程导入以前模块化的类 编译的时候引发出 "NSObjCRuntime.h"错误

错在Prefix.pch中:


    #import "ISButton.h"

#ifdef __OBJC__

    #import <UIKit/UIKit.h>

    #import <Foundation/Foundation.h>

#endif

改成


#ifdef __OBJC__

    #import <UIKit/UIKit.h>

    #import <Foundation/Foundation.h>

    #import "ISButton.h"

#endif

Top