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

前端 未结 10 966
北恋
北恋 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:10

    I couldn't get it to work by adding that filepath mentioned by other answers, but I realized the file where it was complaining wasn't even being tested. I just had to remove it from the test target using the Right Utilities Side Bar.

提交回复
热议问题