realm / jazzy

Soulful docs for Swift & Objective-C
https://realm.io
MIT License
7.35k stars 413 forks source link

"Unable to find an Xcode with swift version 2.1.1" #506

Closed LeoNatan closed 8 years ago

LeoNatan commented 8 years ago
/Users/leonatan/Desktop/Aroesti/CPMobileSDK/Utils/jazzy/lib/jazzy/sourcekitten.rb:139:in `run_sourcekitten': Unable to find an Xcode with swift version 2.1.1. (RuntimeError)
    from /Users/leonatan/Desktop/Aroesti/CPMobileSDK/Utils/jazzy/lib/jazzy/doc_builder.rb:56:in `block in build'
    from /Users/leonatan/Desktop/Aroesti/CPMobileSDK/Utils/jazzy/lib/jazzy/doc_builder.rb:54:in `chdir'
    from /Users/leonatan/Desktop/Aroesti/CPMobileSDK/Utils/jazzy/lib/jazzy/doc_builder.rb:54:in `build'
    from /Users/leonatan/Desktop/Aroesti/CPMobileSDK/Utils/jazzy/bin/jazzy:15:in `<main>'

Get this with Xcode 7.3, on latest master commit (cc6d813). I assume this is due to SourceKitten not supporting Swift 2.2 yet?

segiddins commented 8 years ago

Yes, and in future you can pass --swift-version=2.3 if you want to use a non-default swift version with jazzy.

LeoNatan commented 8 years ago

It worked, thanks so much!