swiftenv icon indicating copy to clipboard operation
swiftenv copied to clipboard

[BUG] Switching versions doesn't appear to work.

Open shial4 opened this issue 4 years ago • 6 comments

swiftenv 1.4.0 installed via homebrew

Overriding swift toolchain with one of installed version by local or global doesn't seem to do anything even though

swiftevn points to toolchain

$ swiftenv local
wasm-DEVELOPMENT-SNAPSHOT-2020-06-02-a192-168-1-147:swift-ui-asm 

but running command with swift says otherwise.

$ swift --version
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin19.4.0

shial4 avatar Jun 07 '20 12:06 shial4

Can you please share the output of the following:

$ which swift

$ env

kylef avatar Jun 07 '20 13:06 kylef

Have you followed all the installation steps for installing with homebrew? https://swiftenv.fuller.li/en/latest/installation.html#via-homebrew

kylef avatar Jun 07 '20 13:06 kylef

I have

shial4 avatar Jun 07 '20 13:06 shial4

Does source ~/.bashrc or source ~/.bash_profile make this work? / What does your bash configuration look like?

kylef avatar Jun 07 '20 13:06 kylef

export PATH="$HOME/.fastlane/bin:$PATH" if which swiftenv > /dev/null; then eval "$(swiftenv init -)"; fi

shial4 avatar Jun 07 '20 23:06 shial4

of. Did move it out from being last lane and this seems to solve it

shial4 avatar Jun 07 '20 23:06 shial4