-
Notifications
You must be signed in to change notification settings - Fork 93
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
swiftenv install 3.0 fails with "version `3.0' is not installed" on TravisCi's xcode7.2 image #68
Comments
Here's my Travis CI osx job with |
I get same error on my Ubuntu 16.04:
|
@dgholz I've made some changes to check for I would note that Xcode 8 is a dependency of Swift 3.0. I don't think you will be able to run Swift 3.0 on macOS without Xcode 8. You can see this mentioned on Swift.org https://swift.org/download/#releases @sauliusgrigaitis your issue doesn't seem to be the same one as this thread. Can you please file another issue including the version of swiftenv you are using and we can debug this problem you are facing. |
@sauliusgrigaitis I think 041ac8a will solve your problem, can you try updating swiftenv from git and test. |
@kylef thanks, I now see I switched the
My expectation is that it should return zero, since |
@dgholz Since you've explicitly tried to install swift it would provide an error if it's already installed. I've added an argument ( $ swiftenv install --skip-existing 3.0
$ swiftenv install -s 3.0 If you're using the Travis CI integration, the latest version of it will use Does that work for you? |
@kylef I just try your script in my fork. https://github.com/wongzigii/Quick/pull/5 But seems the CI is still in error. |
@wongzigii Please see the Travis CI integration guide: https://swiftenv.fuller.li/en/latest/integrations/travis-ci.html. The way you have configured swiftenv is with a different/unsupported way by piping it into bash. You will also need to switch to the Travis CI trusty image as mentioned in the guide. |
@kylef works like a charm, thanks for all your help! |
I've set up a Travis CI build to install swift 3.0 on their
xcode7.2
image. When I configure it to install 3.0, I see:I think this is because https://github.com/kylef/swiftenv/blob/master/share/swiftenv-install/3.0#L11 will use
https://swift.org/builds/swift-3.0-release/xcode/swift-3.0-RELEASE/swift-3.0-RELEASE-osx.pkg
to install version 3.0. That package installs to/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain
, but https://github.com/kylef/swiftenv/blob/master/libexec/swiftenv-prefix#L29 instead checks for/Library/Developer/Toolchains/swift-3.0.xctoolchain
(without the-RELEASE
).I can't replicated it locally, as I've installed Xcode 8 &
swiftenv-prefix
finds/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
, and its version iswhich is recognised by https://github.com/kylef/swiftenv/blob/master/libexec/swiftenv-prefix#L47
The text was updated successfully, but these errors were encountered: