Class Foo is implemented in both MyApp and MyAppTestCase. One of the two will be used. Which one is undefined

前端 未结 6 983
忘掉有多难
忘掉有多难 2020-11-28 22:16

Recently I started Unit testing my application. This project (in Xcode4) was created without a unit test bundle so I had to set it up. I have followed the steps from here: h

6条回答
  •  春和景丽
    2020-11-28 23:08

    For me this happened because I deployed to the device and then to the simulator as I have NSZombies enabled. The solution was to switch to the simulator configuration & do a Product -> Clean then switch to the device configuration & do the same. Error went away. It's to do with build cache.

提交回复
热议问题