dyld[98585]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.71.dylib
Referenced from: /opt/homebrew/Cellar/php@7.0/7.0.33_6/bin/php
Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.71.dylib' (no such file), '/usr/local/lib/libicui18n.71.dylib' (no such file), '/usr/lib/libicui18n.71.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/70.1/lib/libicui18n.71.dylib' (no such file), '/usr/local/lib/libicui18n.71.dylib' (no such file), '/usr/lib/libicui18n.71.dylib' (no such file)
[1] 98585 abort php -v
查看了/opt/homebrew/opt/icu4c/lib/目录下是libicui18n.70.dylib
$brew switch icu4c 71
Error: Unknown command: switch
回滚
#切换目录
cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
#git查看提交版本
git log --follow icu4c.rb
#回滚到71版本,没有看到71的提交记录,选择了最初的一个提交版本回滚
git checkout -b icu4c-71.1 xxxx(版本号)
#brew重新安装icu4c
brew reinstall ./icu4c.rb
失败
又参考了记录一次brew 回滚 icu4c 操作仍然不行
brew update && brew upgrade