Xcode 8 Beta-转换为当前的Swift语法失败:找不到测试主机 [英] Xcode 8 Beta - Convert to Current Swift Syntax Failed: Could not find test host

查看:73
本文介绍了Xcode 8 Beta-转换为当前的Swift语法失败:找不到测试主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用Xcode 8的转换向导时,我收到一条错误消息. 尝试重新启动,下载新代码并删除我的DerivedData文件后,我无法逃脱此错误:

I am receiving an error message when I try to use Xcode 8's Convert Wizard. After trying rebooting, downloading fresh code, and deleting my DerivedData files I cannot escape this error:

转换为当前的Swift语法失败:找不到测试主机

Convert to Current Swift Syntax Failed: Could not find test host

我尝试了两个选项:Swift 2.3和Swift3.选择一个版本后,我立即收到该错误.

I have tried both options which are: Swift 2.3 and Swift 3. After I select a version I instantly get that error.

以下是错误的屏幕截图:

Here is a screenshot of the error:

推荐答案

这对我有用:

  1. 在左侧浏览器中选择Xcode项目.
  2. 在项目"的"General"选项卡中单击测试目标.
  3. 披露测试".在我的项目中,主机应用程序"下拉按钮为空白.选择合适的主机应用程序.
  4. 尝试立即建立测试目标.如果成功的话,那么转换语法也应该如此.
  1. Select the Xcode project in the lefthand browser.
  2. Click on your test target in the Project's General tab.
  3. Disclose "Testing". In my project the "Host Application" pulldown button was blank. Select your appropriate host application.
  4. Try building your test target now. If that succeeds then converting syntax should as well.

在安装Xcode 8 beta之后,我遇到了这个问题,所以我认为这是相关的.

I had this problem after installing the Xcode 8 beta so I assume this is related.

图片来源@karthikkck

Picture Credit to @karthikkck

这篇关于Xcode 8 Beta-转换为当前的Swift语法失败:找不到测试主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆