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


when add test target needs host application in order run xcode adds targets not associated application added.

i have 2 schemes (internal & production). want run tests on our internal application. when add internal application host end production target being added builds , cannot delete it. if remove host application goes away tests fail.

does know i'm going wrong?

we had same problems, fixed them these steps:

  1. in testing target, go tab 'general' , set hosting application 'none', go 'build phases' , remove target dependency on former hosting target.

  2. (don't know if step necessary) go 'window'->'projects', remove derived data hosting target , close xcode. reopen xcode again, open project/workspace.

  3. edit hosting target's scheme, select "build" on left , uncheck "find implicit dependencies" - believe function buggy.

  4. in testing target, go tab 'general' , set hosting application previous value, recheck target depdencies.


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -