# Can't use framework compiled with Swift 5.2 in Swift 5.1.3 project

**URL:** <https://forums.swift.org/t/cant-use-framework-compiled-with-swift-5-2-in-swift-5-1-3-project/35248>\
**Category:** Using Swift\
**Tags:** swift-evolution, xcframework\
**Created:** [April 10, 2020, 10:00am UTC](https://forums.swift.org/t/cant-use-framework-compiled-with-swift-5-2-in-swift-5-1-3-project/35248 "2020-04-10T10:00:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![harlanhaskins](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/harlanhaskins/32/333_2.png) [@harlanhaskins](https://forums.swift.org/u/harlanhaskins)\
**Post date:** [May 19, 2020, 5:04pm UTC](https://forums.swift.org/t/cant-use-framework-compiled-with-swift-5-2-in-swift-5-1-3-project/35248/9 "2020-05-19T17:04:16Z")

</div>

Yep, you're right, I apologize for mixing up the terms.

To be absolutely clear and avoid using potentially ambiguous language:

Module interfaces generated by a given version of the Swift compiler are guaranteed to be able to be imported by any _future_ Swift compiler that supports the `-swift-version` that it was compiled with.

For example, if Swift 20 removes support for `-swift-version 8`, then `.swiftinterface` files compiled in the `-swift-version 8` language mode will no longer be supported, but Swift 8 to Swift 19 will be able to import it.

That said, if Swift 9 produces a module interface, _even in `-swift-version 8` mode_ there's no guarantee that the Swift 8 compiler will be able to import the module, because the `@inlinable` code in the `.swiftinterface` file may be using new syntax that was introduced in Swift 9, but that was included in the `-swift-version 8` language mode.

---

_[View the full topic](https://forums.swift.org/t/cant-use-framework-compiled-with-swift-5-2-in-swift-5-1-3-project/35248)._
