Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode 7.2: `run_sourcekitten': Unable to find an Xcode with swift version 2.1. #419

Closed
dockay opened this issue Dec 14, 2015 · 1 comment
Assignees
Milestone

Comments

@dockay
Copy link

dockay commented Dec 14, 2015

I just installed jazzy from a gem via

gem install jazzy

jazzy -v jazzy version: 0.4.1

I'm running ruby:
ruby -v ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]

I already did a gem update

running jazzy in my root folder of the project produces following error:

/Users/xxx/.rvm/gems/ruby-2.2.1/gems/jazzy-0.4.1/lib/jazzy/sourcekitten.rb:137:in run_sourcekitten': Unable to find an Xcode with swift version 2.1. (RuntimeError)
from /Users/xxx/.rvm/gems/ruby-2.2.1/gems/jazzy-0.4.1/lib/jazzy/doc_builder.rb:57:in block in build' from /Users/xxx/.rvm/gems/ruby-2.2.1/gems/jazzy-0.4.1/lib/jazzy/doc_builder.rb:55:in chdir'
from /Users/xxx/.rvm/gems/ruby-2.2.1/gems/jazzy-0.4.1/lib/jazzy/doc_builder.rb:55:in build' from /Users/xxx/.rvm/gems/ruby-2.2.1/gems/jazzy-0.4.1/bin/jazzy:15:in <top (required)>'
from /Users/xxx/.rvm/gems/ruby-2.2.1/bin/jazzy:23:in load' from /Users/xxx/.rvm/gems/ruby-2.2.1/bin/jazzy:23:in

'
from /Users/xxx/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in eval' from /Users/xxx/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in '`

By writing I just fixed it myself haha! ;-)

For Xcode 7.2 I hade to use:
jazzy --swift-version 2.1.1

@jpsim
Copy link
Collaborator

jpsim commented Dec 14, 2015

We just moved to Swift 2.1.1 as the default in #416.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants