问题
When I look through my navigator on the left hand side my test framework for my project is red. How do I get it to turn black?
回答1:
Anything red inside project navigator (The very first tab of left hand side pane) means: the corresponding file is missing. So if it is a target file, simply rebuild that target and Xcode makes a new one. But if it's a source code or any other resource file:
- Select the file that marked with red color
- Select brows button from the file inspector menu on the right hand side
- Relocate the missing file
Some xctest targets will remain always red, because Xcode doesn't store a file for them. But it's not a problem.
来源:https://stackoverflow.com/questions/52795198/why-are-the-tests-red-on-my-xcode-project