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

前端 未结 6 994
忘掉有多难
忘掉有多难 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:02

    The reason is that you override RUNPATH_SEARCH_PATHS of your App Target`s build setting defined in other target.

    Solution:

    Go to your App Target and find RUNPATH_SEARCH_PATHS build setting and use there $(inherited) flag for both: Debug and Release

提交回复
热议问题