'Cannot find interface declaration' in auto-generated Swift bridging header

后端 未结 1 1461
终归单人心
终归单人心 2021-02-19 10:17

My current project contains both Swift and Objective-C code. Both types of source file use code from the other language. When I do a full clean and recompile, I get errors on a

1条回答
  •  南笙
    南笙 (楼主)
    2021-02-19 11:00

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

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

    0 讨论(0)
提交回复
热议问题