How can I import Swift code to Objective-C?

前端 未结 15 2410
南方客
南方客 2020-11-22 02:52

I have written a library in Swift and I wasn\'t able to import it to my current project, written in Objective-C.

Are there any ways to import it?

#i         


        
15条回答
  •  盖世英雄少女心
    2020-11-22 03:15

    Be careful with dashes and underscores, they can be mixed up and your Project Name and Target name won't be the same as SWIFT_MODULE_NAME.

提交回复
热议问题