gpt4 book ai didi

ios - 是否可以在具有新版本 swift 的项目中使用以旧版本 swift 编写的库?

转载 作者:搜寻专家 更新时间:2023-10-31 08:25:22 25 4
gpt4 key购买 nike

我正在使用 Swift 3 开发一个项目。但是,许多库仍在使用 Swift 2.3。

有没有办法在我的项目中按原样使用它们?

既然可以在 Swift 中使用 Objective C 库,我认为这是一个机会。

最佳答案

也许 Apple 的这个引用回答了这个问题:

不幸的是,这似乎是不可能的:

First, Swift 2.3 and Swift 3 are not binary compatible so your app's entire code base needs to pick one version of Swift.

https://developer.apple.com/swift/blog/?id=36

关于ios - 是否可以在具有新版本 swift 的项目中使用以旧版本 swift 编写的库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39985896/

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