Swift “Bridging-Header.h” file not allowing me to instantiate objective-c classes in .swift files

后端 未结 5 1509
执笔经年
执笔经年 2020-12-05 03:10

When X-code tries to create a bridging header automatically, it crashes every single time, so I followed the instructions on how to manually create a bridging header. (Creat

5条回答
  •  时光取名叫无心
    2020-12-05 03:40

    I tried to create a bridging header myself but for some reason Xcode didn't like it. So i deleted my custom one, imported an Obj C file which made Xcode ask if I wanted it to create one for me.

    I clicked yes, and it worked!

提交回复
热议问题