如何在 Xcode 9 上构建 Swift 3 项目? [英] How to build Swift 3 project on Xcode 9?

查看:20
本文介绍了如何在 Xcode 9 上构建 Swift 3 项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 9 Release Notes says that Swift 3 compilation is supported:

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

I have installed Xcode 9 beta. But when I press Build it shows bunch of errors. Are some special preparations need to do when use Swift 3 in Xcode 9?

UPD:

Module compiled with Swift 3.1 cannot be imported in Swift 4.0

解决方案

Select the target, goto Build Settings > Swift Language Version:

这篇关于如何在 Xcode 9 上构建 Swift 3 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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