Objective C to Swift header file with multiple targets

前端 未结 6 1685
無奈伤痛
無奈伤痛 2020-12-01 03:32

I\'m successfully calling my Swift classes from Objective C (for target \'MyApp\') via the import statement:

#import \"MyApp-Swift.h\"

I\'v

6条回答
  •  被撕碎了的回忆
    2020-12-01 04:03

    I put the appropriate #import -Swift.h statement in a prefix header file (-Prefix.pch) defined/added for each build (target/scheme).

提交回复
热议问题