[英]vapor toolbox broken after upgrading swift
Vapor toolbox is crashing when trying to use it after upgrading to Swift 3.1. 升级到Swift 3.1后尝试使用Vapor工具箱时崩溃了。
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
Swift ABI is not yet stable. Swift ABI还不稳定。 Thus, Swift programs (like Vapor Toolbox) must be recompiled to work with new versions of the language. 因此,必须重新编译Swift程序(如Vapor Toolbox)以使用该语言的新版本。
Simply re-installing the toolbox should fix this issue. 只需重新安装工具箱即可解决此问题。
brew reinstall vapor/tap/vapor
You may need to delete the existing executable if you did not originally install with Homebrew 如果您最初未使用Homebrew安装,则可能需要删除现有的可执行文件
rm /usr/local/bin/vapor
Then ensure the executable is gone 然后确保可执行文件消失
which vapor
You can now install with brew 您现在可以使用brew安装
brew install vapor/tap/vapor
You can simply delete Vapor executable from 您只需从中删除Vapor可执行文件即可
/usr/local/bin
And then run the toolbox install script from the documentation 然后从文档中运行工具箱安装脚本
curl -sL toolbox.vapor.sh | bash
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.