I have unit test (not UI tests) and launching app itself along with tests is undesirable. I read about so-called non-hosted tests and that sounds suitable here. However, trying to launch non-hosted test on Xcode 7.3 I faced one serious problem - it complains that classes in app being tested couldn't be found by linker.
What I have read and tried:
App delegate substitution based on launch arguments - undesirable since it forces my app to know about tests (tight coupling, broken encapsulation etc...) and actually launch my app along with test (even though doing nothing)
XCode 5 unit testing: starts my app - tried every answer here and they don't work except changing classes target membership which is obviously not a good option since changing target membership manually is error-proned and becomes difficult when project grows
Apple's outdated guide - nope
Xcode test target with host application forces wrong target into build section of scheme - nope
https://stackoverflow.com/a/22024428/2305175 - nope
Manually creating unit test target with explicitly setting Target to be tested
to None - nope
How could I run non-hosted tests without changing classes target membership, app delegate substitution and other questionable techniques???