我编译Swift 2.3项目并在Xcode 8.1上遇到此问题 [英] I compiling Swift 2.3 project and have this issue on Xcode 8.1

查看:121
本文介绍了我编译Swift 2.3项目并在Xcode 8.1上遇到此问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编译Swift 2.3项目并在Xcode 8.1上遇到此问题:

I compiling Swift 2.3 project and have this issue on Xcode 8.1:


使用Legacy Swift语言版(SWIFT_VERSION)需要为使用Swift的目标正确配置。使用[Edit> Convert> To Current Swift Syntax ...]菜单选择Swift版本或使用Build Settings编辑器直接配置构建设置。

"Use Legacy Swift Language Version" (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

转换后仍然有问题

推荐答案

我遇到了一些问题,
您可以通过在项目设置中将使用旧版Swift语言版本设置为true来解决问题。

I have faced same issue with some of my pods, You can resolve issue by setting Use Legacy Swift Language Version to true in your project setting.

为每个抛出此错误的pod重复此步骤。

repeat this step for every pod which throws this error.

这篇关于我编译Swift 2.3项目并在Xcode 8.1上遇到此问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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