加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – 如何在Xcode 9上构建Swift 3项目?

发布时间:2020-12-15 01:45:47 所属栏目:百科 来源:网络整理
导读:Xcode 9 Release Notes表示支持Swift 3编译: One compiler for Swift 4 and Swift 3 ,Swift 4 and Swift 3 targets can be compiled together in the same project. 我已经安装了Xcode 9 beta. 但是,当我按下Build时,它会显示一堆错误.在Xcode 9中使用Swift
Xcode 9 Release Notes表示支持Swift 3编译:

One compiler for Swift 4 and Swift 3,Swift 4 and Swift 3 targets can be compiled together in the same project.

我已经安装了Xcode 9 beta.
但是,当我按下Build时,它会显示一堆错误.在Xcode 9中使用Swift 3时是否需要做一些特殊的准备工作?

UPD:

使用Swift 3.1编译的模块无法在Swift 4.0中导入

解决方法

选择目标,转到Build Settings> Swift语言版本:

enter image description here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读