且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自动生成的 Swift 桥接头中的“找不到接口声明"

更新时间:2023-10-23 08:05:58

在 Obj-C 文件中,您需要导入 swift 模块(使用 #import "Module-Swift.h").

In Obj-C files, you need to import the swift module (with #import "Module-Swift.h").

仅在要使用 Swift 模块中定义的类型的文件中执行此操作.

Do this only in the files where you are going to use types defined in your Swift module.