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

后端 未结 30 1439
春和景丽
春和景丽 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:46

    In build settings test target, check the host testing, it takes the name set in PRODUCT_NAME. It is that name that you should use in test classes.

    I recommand to not change PRODUCT_NAME (match name of the main target)

提交回复
热议问题