gpt4 book ai didi

xcode - Swift 3 模式已被弃用

转载 作者:行者123 更新时间:2023-12-04 08:02:03 24 4
gpt4 key购买 nike

在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com