Search code examples
swiftcarthageswift3xcode8

Downgrade xcode project from swift 3 to swift 2.2


I downloaded the new xCode 8 beta. When i opened my old project(in swift 2.2), i clicked the convert to new swift syntax, and i clicked swift 3. The problem is that i use a framework downloaded with carthage (Kanna). I have tried to use the:

carthage update

but it doesn't work.

When i try to run the code on the new Xcode-beta, i get this error:

Module file was created by an older version of the compiler; rebuild 'Kanna' and try again:


Solution

  • Seems like i am very late to answer but there is update available for 'Kanna' framework supporting swift 3.0. You can add this to your podfile if you use CocoaPods

    use_frameworks!
    pod 'Kanna', '~> 2.0.0'
    

    Or for Carthage you can install like

    github "tid-kijyun/Kanna" ~> 2.0.0