import swift class in objective-c, -Swift.h file not found

后端 未结 10 1603
野性不改
野性不改 2020-12-02 15:41

I have an iOS project written with Objective-C. I created an Swift class in the project, the bridging header file for accessing objective-c in Swift is generated successfull

10条回答
  •  既然无缘
    2020-12-02 16:13

    For me, the problem was that I had bitcode on. When I clicked on the "Update to recommended project settings", it changed a few settings which probably the culprit. I turned "Enabled Bitcode" to "No" in the Build Settings and it is fixed now.

提交回复
热议问题