'Module was not compiled for testing' when using @testable

前端 未结 10 884
难免孤独
难免孤独 2020-12-04 14:00

I\'m trying to use Swift 2\'s new @testable declaration to expose my classes to the test target. However I\'m getting this compiler error:

10条回答
  •  天涯浪人
    2020-12-04 14:22

    If you trying to test framework:

    Go to test target -> Build Phase -> Create new copy files phase -> Choose frameworks -> Add all recursively used frameworks

提交回复
热议问题