Xcode 9:Swift依赖性分析错误 [英] Xcode 9: Swift dependency analysis error

查看:245
本文介绍了Xcode 9:Swift依赖性分析错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Swift中使用obj-C和UI测试编写了一个iOS应用程序。我最近安装了Xcode 9 beta 2并想编译应用程序。我收到以下错误:

I have an iOS-app written in obj-C and UI-tests for the app in Swift. I recently installed Xcode 9 beta 2 and wanted to compile the app. I get the following error:

依赖性分析错误必须将Swift语言版本(SWIFT_VERSION)构建设置设置为目标支持的值使用Swift。可以在构建设置编辑器中设置此设置。

当我去构建设置时,没有任何可能为Swift语言设置版本。这代表了一个错误吗?此外,应用程序本身不使用Swift,只使用自动UI_tests。

When I go to build settings there isn't any possibility to set a version for Swift language. Does this represent a bug? Furthermore the app itself doesn't use Swift, only the automated UI_tests.

推荐答案

它告诉您需要在Build Settings中指定swift版本。只需点击项目并转到构建设置(不是目标),然后将Swift语言版本设置为 Swift 3.2 Swift 4 。在这里你有截图:)

It tells that you need to specify the swift version in Build Settings. Just click project and go to Build settings (not the target) and set "Swift Language Version" to Swift 3.2 or Swift 4. Here you have an screenshot :)

这篇关于Xcode 9:Swift依赖性分析错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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