简体   繁体   中英

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?

The answer is no :/ As Apple said:

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. 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.

Source and more informations on the Apple Swift Blog .

You will have to choose between 2.3 and 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM