.app file not found in Derived Data

后端 未结 7 1474
傲寒
傲寒 2021-01-01 19:59

When trying to compile my project I am getting this error and am wondering if anyone knows how to fix it?

I\'ve read every answer on SO and elsewhere on the interne

7条回答
  •  有刺的猬
    2021-01-01 20:25

    Ok, the clue, while difficult to spot, is that the message you posted above isn't one building your app, but your unit tests. It also mentions it at the top of your output window, but one doesn't expect that to change.

    You've possibly renamed your scheme, and in doing so the unit test is pointing to your real build or something else. Your app may well actually have built fine, but its your unit test target that fails.

    If the problem is that you've been renaming targets then in your UnitTest scheme, go to build settings and search for TEST, which should bring up the settings for TEST HOST. Make sure these values are pointing to whatever you want the test app to be called and not the main executable.

    For me it was just a case of appending "test" onto both the debug & release setting of my test target's TEST_HOST.

    It all builds for me now, though annoyingly it is actually building both targets - at least they both compile.

提交回复
热议问题