iOS - 'MyProject-Swift.h' file not found when running Unit Tests for Swift

前端 未结 10 980
北恋
北恋 2020-12-02 07:03

I am trying to setup Unit Testing for my project. It is an existing Objective-C app, that I have recently added one Swift class to. I have setup the \'MyProject-Swift.h\' an

10条回答
  •  误落风尘
    2020-12-02 07:07

    After I tried out everything I could find on the topic, the thing that worked for me was actually running the app although it was still showing the 'ModuleName-Swift.h file not found' error.

    It went away and my app works perfectly fine. I guess I should have considered that earlier... The error keeps coming back, but after running the app it always just goes away again. So the issue is not really solved for me, but I can continue working on other topics for now...

提交回复
热议问题