swift

swift桥接头文件 import <xx/xx.h>

2016-05-08  本文已影响471人  缭雾

关于swift桥接头文件 import <xx/xx.h> file not found的问题

我想要在swift项目中引入 UITableView+FDTemplateLayoutCell

想当然的引入
#import <UITableView-FDTemplateLayoutCell/UITableView+FDTemplateLayoutCell.h>

结果提示 file not found

解决方法 :

点击 pods -> targets -> build setting -> 搜索'packaging' ->找到 produce name 发现是 UITableView_FDTemplateLayoutCell

桥接头文件改为
#import <UITableView_FDTemplateLayoutCell/UITableView+FDTemplateLayoutCell.h>

即可

上一篇 下一篇

猜你喜欢

热点阅读