gpt4 book ai didi

swift - 升级swift后 Vapor 工具箱坏了

转载 作者:IT王子 更新时间:2023-10-29 05:25:10 30 4
gpt4 key购买 nike

升级到 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 还不稳定。因此,必须重新编译 Swift 程序(如 Vapor Toolbox)才能使用新版本的语言。

用 Brew 重新安装

只需重新安装工具箱即可解决此问题。

brew reinstall vapor/tap/vapor

用 Brew 替换旧安装

如果您最初没有使用 Homebrew 安装,您可能需要删除现有的可执行文件

rm /usr/local/bin/vapor

然后确保可执行文件已经消失

which vapor

您现在可以使用 brew 安装

brew install vapor/tap/vapor

关于swift - 升级swift后 Vapor 工具箱坏了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43071458/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com