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