Migrating from Swift 2.3 to Swift 3 with dependencies

痴心易碎 提交于 2019-12-24 03:59:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!