Xcode - 找不到测试主机

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44452534/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:01:55  来源:igfitidea点击:

Xcode - Could not find test host

iosswiftxcodexcode8

提问by Irwan Madness

I am receiving an error message when I try to use Xcode 8's Convert Wizard. After trying install KIF Framework.

当我尝试使用 Xcode 8 的转换向导时收到一条错误消息。尝试安装 KIF 框架后。

Here is the error message:

这是错误消息:

Could not find test host for PresentrTests: TEST_HOST evaluates to "/Users/mymacbook/Library/Developer/Xcode/DerivedData/MyApplication-akrziiobrmqfliboqlgonjeyvquu/Build/Products/Debug-iphoneos/MyApplication.xctest/MyApplication"

找不到 PresentrTests 的测试主机:TEST_HOST 评估为“/Users/mymacbook/Library/Developer/Xcode/DerivedData/MyApplication-akrziiobrmqfliboqlgonjeyvquu/Build/Products/Debug-iphoneos/MyApplication.xctest/MyApplication”

回答by spfursich

  1. Select the Xcode project in the lefthand browser.
  2. Click on your test target in the Project's General tab.
  3. Under "General" select your appropriate host application under "Testing".
  1. 在左侧浏览器中选择 Xcode 项目。
  2. 在项目的常规选项卡中单击您的测试目标。
  3. 在“General”下,在“Testing”下选择合适的主机应用程序。