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

Swift version error when trying to generate ObjC docs #522

Closed
jessesquires opened this issue Apr 12, 2016 · 2 comments
Closed

Swift version error when trying to generate ObjC docs #522

jessesquires opened this issue Apr 12, 2016 · 2 comments
Assignees
Milestone

Comments

@jessesquires
Copy link
Contributor

Steps

Generate ObjC docs for JSQSystemSoundPlayer. With this build script. (without specifying a --swift-version)

Version

Jazzy 0.5.0

Error

Unable to find an Xcode with swift version 2.1.1. (RuntimeError)

Fix

Specifying a Swift version fixed it: jessesquires/JSQSystemSoundPlayer@ad2b3f9

The fix here was pretty easy/straight-forward, but feels really odd to specify a Swift version for generating ObjC docs.


It looks like this was fixed by release 0.6.0, which now defaults to Swift 2.2. However, presumably this will break when the next version of Swift is released?

Possible solution

Should ObjC simply use the latest toolchain/runtime?

@jverkoey
Copy link
Collaborator

I've been specifying --swift-version $(swift --version | head -n1 | awk '{print $4}') to get around this for now.

@jpsim
Copy link
Collaborator

jpsim commented Apr 15, 2016

I'll close this as a duplicate of #427, since it will achieve the same result.

@jpsim jpsim closed this as completed Apr 15, 2016
@pigeondotdev pigeondotdev modified the milestone: The Past Nov 22, 2016
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

4 participants