swift下引入含c或者Object-c文件的头文件注意事项,持续更新

如果你想引用头文件,且头文件里是引用.h的文件 ,你需要注意

  1.在Build Settings下 找到Swift Compiler - Code Generation 下的 Objective-C Bridging Header 选项,并将其值设值为你的头文件路径

  2.Apple LLVM 7.0 - Language - Modules 》》Enable Modules(C and Objective-C) 》》Yes

 

posted on 2015-11-26 10:04  XHShare  阅读(1072)  评论(0编辑  收藏  举报

导航