I ran into an issue with Xcode 6.1.1 not detecting a unit test file. I ran the scheme it was associated with and the file was found at runtime and ended up with an 'rT' icon next to it in the unit test navigator. That led me to this question but none of the answers are working for me. No amount of deleting my derived data or restarting Xcode is helping. The only thing that came close to working was deleting my derived data folder while Xcode was running -- when it reindexed it discovered all of the test files in one of my three schemes.
All these tests had been detected in the past -- I think this all broke during reindexing.
Has anyone seen this and found a solution? I would like my tests to be detected before runtime so I can easily run them individually.
I've run into this too but deleting the Derived Data worked for me:
However, you've stated this isn't completely working for you. Perhaps you should also try deleting the Xcode cache directory?
This happened to me on Xcode 7.2 too. I performed the following steps to fix the issue:
It took some time to index the files and then all the tests appeared under Test navigator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With