美文网首页
iOS编译错误整理

iOS编译错误整理

作者: Raywf | 来源:发表于2018-09-19 12:14 被阅读0次

2018.9.12

1.iOS添加cc++文件引发的NSObjCRuntime.h错误;

原因:错在Prefix.pch中,

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

解决:添加__OBJC__

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

相关文章

网友评论

      本文标题:iOS编译错误整理

      本文链接:https://www.haomeiwen.com/subject/zubmgftx.html