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

编程入门 行业动态 更新时间:2024-10-28 10:21:28
本文介绍了我编译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上遇到此问题

本文发布于:2023-11-26 06:13:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1632954.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:并在   项目   Swift   Xcode

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!