xcode - Swift 3 模式已被弃用

标签 xcode xcode10.1

在 Xcode 10.1 中,每当我构建应用程序时,都会收到警告

Swift 3 mode has been deprecated and will be removed in a later version of Xcode. Please migrate "My Appp" to Swift 4.2 using "Convert > To Current Swift Syntax…" in the Edit menu. (in target 'My App')



我怎样才能抑制警告?

我尝试转换但转换失败,此外我的应用程序依赖于一些我无法以任何方式转换的 Pod/库。

有没有办法停止看到警告?

最佳答案

不幸的是,没有办法删除它。您需要手动将 Pod/库更新到 Swift 4.x 或等到有人为您完成这项工作。否则,您将无法在 future 某个时候使用更新的 Xcode 版本构建您的项目。

来自 https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes :

Xcode 10 is the last release that will support Swift 3. Migrate your projects from Swift 3 code to Swift 4.2 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax… (43101816)

关于xcode - Swift 3 模式已被弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53171368/

相关文章:

iphone - 如何在iphone项目中添加C++文件

ios - withinMiles 无法在 Swift 中使用 Parse PFGeopoint 查询

ios - 如何在iOS中制作通用框架?

xcode - Safari 应用程序扩展未出现在 Safari 首选项中时如何进行故障排除?

ios - Ilya Puchka 的 ReadMoreTextView(UITextView 子类、iOS、Swift、CocoaPods)

ios - 使用 Xcode 手动配置单元测试

ios - Swift 通用框架无法在其他应用程序项目中工作

ios - iOS中如何根据不同用户类型动态切换UI主题

c++ - 调试 C++ (Xcode 10.1) 时出现输入问题

ios - Xcode 一直显示 :-1: SWIFT_VERSION '5.0' is unsupported, 支持的版本是 : 3. 0、4.0、4.2。有什么解决方案吗?