Swift to Objective-C header does not contain Swift classes

前端 未结 8 2070
無奈伤痛
無奈伤痛 2020-12-16 12:18

I\'m attempting to use Swift classes in my Objective-C code, however my Swift classes don\'t seem to appear in the generated header. As a result, my build fails with \"Use o

8条回答
  •  借酒劲吻你
    2020-12-16 12:57

    In my case the class was not being compiled, because I first added it to my test target only... After adding it to my main target (Build Phases -> Compile Sources), it was actual compiled and added to the header file.

    So much for TDD ;-)

提交回复
热议问题