13

Vapor toolbox is crashing when trying to use it after upgrading to Swift 3.1.

dyld: lazy symbol binding failed: Symbol not found: __TTSfq4n_s___TFVSS13CharacterView38_measureExtendedGraphemeClusterForwardfT4fromVVSS17UnicodeScalarView5Index_Si
  Referenced from: /usr/local/bin/vapor
  Expected in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib

dyld: Symbol not found: __TTSfq4n_s___TFVSS13CharacterView38_measureExtendedGraphemeClusterForwardfT4fromVVSS17UnicodeScalarView5Index_Si
  Referenced from: /usr/local/bin/vapor
  Expected in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib
tanner0101
  • 4,005
  • 19
  • 33

2 Answers2

31

Swift ABI is not yet stable. Thus, Swift programs (like Vapor Toolbox) must be recompiled to work with new versions of the language.

Reinstall with Brew

Simply re-installing the toolbox should fix this issue.

brew reinstall vapor/tap/vapor

Replace Old Installation With Brew

You may need to delete the existing executable if you did not originally install with Homebrew

rm /usr/local/bin/vapor

Then ensure the executable is gone

which vapor

You can now install with brew

brew install vapor/tap/vapor
tanner0101
  • 4,005
  • 19
  • 33
2

You can simply delete Vapor executable from

/usr/local/bin

And then run the toolbox install script from the documentation

curl -sL toolbox.vapor.sh | bash
Fede Cugliandolo
  • 1,686
  • 15
  • 24
  • 3
    I'd recommend installing with Homebrew. It's easier to be notified when updates are available. – tanner0101 Mar 28 '17 at 17:02
  • With the `brew install vapor/tap/toolbox`, I was getting `Error: No available formula with the name "vapor/tap/toolbox" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps.` – Genki Mar 30 '17 at 05:59
  • The formula is called `vapor/tap/vapor` now. – vzsg Mar 31 '17 at 09:07