[英]Using a swift 3 framework in Swift 2.3
I believe the answer is no, but I wanted to be certain. 我相信答案是否定的,但我想确定。 Can you compile a swift 2.3 app that contains a swift 3.0 framework?
你能编译一个包含swift 3.0框架的swift 2.3应用程序吗?
The answer is no :/ As Apple said: 答案是否定的:/正如Apple所说:
Swift 3 is the primary development language supported within Xcode 8 so there are a couple notes to consider if you chose to continue using Swift 2.3.
Swift 3是Xcode 8中支持的主要开发语言,因此如果您选择继续使用Swift 2.3,则需要考虑几个注意事项。 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.
首先,Swift 2.3和Swift 3不是二进制兼容的,因此您的应用程序的整个代码库需要选择一个版本的Swift。
Source and more informations on the Apple Swift Blog . Apple Swift博客上的来源和更多信息 。
You will have to choose between 2.3 and 3.0. 您必须在2.3和3.0之间进行选择。 If you can, I think the best idea is to move directly to 3.0 (since 2.3 is just a "transitory" version).
如果可以,我认为最好的想法是直接转向3.0(因为2.3只是一个“暂时”版本)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.