第一:swift->oc
这个相对简单一点,
在自动生成的桥接文件中导入你要掉的oc文件名就可以了,
如果没有生成桥接文件也可以自己手动创建(Header File)
第二:oc->swift
Bulid Settings-->packaging-->Defines Module (设为YES)
Bulid Settings-->packaging-->Product Name (这个字段 + Swift.h 导入到oc的头文件)
代码:oc->swift(oc中使用swift) https://github.com/1365102044/oc-call-swift.git
swift->oc(swift中使用oc) https://github.com/1365102044/swift-call-oc.git