Xcode test target with host application forces wrong target into build section of scheme

前端 未结 1 1522
悲&欢浪女
悲&欢浪女 2021-02-05 10:52

When I add a test target that needs a host application in order to run Xcode adds targets that are not associated with the application I added.

I have two schemes (inter

相关标签:
1条回答
  • 2021-02-05 11:46

    We had the same problems, we fixed them with these steps:

    1. in your testing target, go to the tab 'General' and set the hosting application to 'none', then go to 'Build phases' and remove the target dependency on the former hosting target.

    2. (don't know if this step is necessary) go to 'Window'->'Projects', remove Derived Data from the hosting target and close Xcode. Reopen Xcode again, open your project/workspace.

    3. edit your hosting target's scheme, select "Build" on the left and uncheck "Find Implicit Dependencies" - I believe that this function is somewhat buggy.

    4. in your testing target, go to the tab 'General' and set the hosting application back to its previous value, recheck the target depdencies.

    0 讨论(0)
提交回复
热议问题