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

后端 未结 10 1620
野性不改
野性不改 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:18

    I ran into the same issue yesterday and worked for hours to fix it with no avail. Others may have been in the same boat as I. I did all of the steps described above, but nothing worked.

    The cause of mine breaking was because of project name artifacts all over my project (from previously changing its name improperly).

    If all of the above steps fail, I would suggest doing like I did and renaming your project so that Xcode can reset somethings... That solved the problem for me. Doing so worked like a charm!

提交回复
热议问题