Why are the tests red on my Xcode project?

 ̄綄美尐妖づ 提交于 2019-12-24 20:59:31

问题


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:

  1. Select the file that marked with red color
  2. Select brows button from the file inspector menu on the right hand side
  3. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!