“No such module” when using @testable in Xcode Unit tests

后端 未结 30 1380
春和景丽
春和景丽 2020-12-02 05:33

I recently updated to Xcode 7 beta 5. I tried adding a unit test to an earlier project, but I am getting the error message \"No such module [myModuleName]\" on the @te

30条回答
  •  温柔的废话
    2020-12-02 05:52

    XCode 12.6 beta

    I'm not sure what caused this issue for me but cleaning my build folder didn't sort it. Restarting XCode didn't sort out the issue either.

    What worked for me was deleting this line: import XCTest, and then retyping it again.

提交回复
热议问题