问题
I am working on migrating my project from Swift 2.3 to Swift 3 but am having issues with 3rd party frameworks that I use via Cocoapods. Many of them have already upgraded to Swift 3, yet some of them haven't. When I build my project, I get the error:
Module compiled with Swift 2.3 cannot be imported in Swift 3.0: [...]
I have read answers such as this one and this one, however they do not solve my problem. I cannot set SWIFT_VERSION
to 2.3
if my project actually is using Swift 3, neither can I change those targets to have their SWIFT_VERSION
set to 3.
Is there some way I can use the frameworks from my dependencies whom are compiled with Swift 2.3, in my Swift 3 project?
来源:https://stackoverflow.com/questions/39572554/migrating-from-swift-2-3-to-swift-3-with-dependencies