美文网首页
xcode报错Could not build module 'F

xcode报错Could not build module 'F

作者: acvoe | 来源:发表于2018-07-16 15:19 被阅读0次

    一、起因:
    在xcode中添加第三方库或者源码时候,会报错could not build module 'XXXXXXXX'或者error: expected identifier or '(' 。之类的错误。而且错误的类一般出现在系统类中或者import的系统frameWork中。
    二、解决方案:
    一般在xocde中存在pch统配文件的情况下出现,只需在pch文件中,将#import的头文件用#ifdef OBJC与#endif包裹错误即可解决。
    例如:

    #ifdef __OBJC__
    #import "AFNetworking.h"
    #endif
    

    相关文章

      网友评论

          本文标题:xcode报错Could not build module 'F

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