06.OC老项目Swift混编的一些坑
01: 桥接后 Unknown type name 问题
Unknown type name 问题场景: 在桥接文件中添加了某
OC类的引用 编译时报错
#import "XXX.h"
在桥接文件中添加CoreLocation库的引用依旧出现上述错误
#import "XXX.h"
#import <CoreLocation/CoreLocation.h>解决方法:
将
CoreLocation的引用置顶
#import <CoreLocation/CoreLocation.h>
#import "XXX.h"Last updated
Was this helpful?