iOS Unit Testing: Class is implemented in both

前端 未结 4 1564
甜味超标
甜味超标 2020-12-19 08:38

I\'m building an iOS 9 App with Swift 2 and Xcode 7.

My app runs fine when deploying it to my phone but when I run any unit test, I get the following error message f

4条回答
  •  遥遥无期
    2020-12-19 09:27

    The answer by @Mundi is correct for some cases.

    However, I experienced the same error and what was causing it is that the libPods.a file for Cocoa Pods was being linked in the app target and the test target.

提交回复
热议问题