在安装 libimobiledevice 报错如下
- unknown or unsupported macOS version: :dunno (MacOSVersionError)
主要原因是我禁用了 brew 自动更新
- 脚本如下
# Homebrew Settings
export PATH="$PATH:$HOME/.rvm/bin"
export HOMEBREW_NO_AUTO_UPDATE=true
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
显示版本不匹配 重置
- 用于重置 Homebrew 的 git 仓库并且移除所有已安装公式的历史记录,从而恢复 Homebrew 到默认状态
brew update-reset
==> Fetching /opt/homebrew...
Fetching objects: 19142, done.
From https://mirrors.aliyun.com/homebrew/brew
aa36104e0f..e57a87cfe9 master -> origin/master
* [new tag] 4.0.10 -> 4.0.10
* [new tag] 4.0.11 -> 4.0.11
* [new tag] 4.0.12 -> 4.0.12
* [new tag] 4.0.13 -> 4.0.13
* [new tag] 4.0.14 -> 4.0.14
* [new tag] 4.0.15 -> 4.0.15
* [new tag] 4.0.16 -> 4.0.16
* [new tag] 4.0.17 -> 4.0.17
* [new tag] 4.0.18 -> 4.0.18
* [new tag] 4.0.19 -> 4.0.19
* [new tag] 4.0.20 -> 4.0.20
* [new tag] 4.0.21 -> 4.0.21
* [new tag] 4.0.22 -> 4.0.22
* [new tag] 4.0.23 -> 4.0.23
* [new tag] 4.0.24 -> 4.0.24
* [new tag] 4.0.25 -> 4.0.25
* [new tag] 4.0.26 -> 4.0.26
* [new tag] 4.0.27 -> 4.0.27
* [new tag] 4.0.28 -> 4.0.28
* [new tag] 4.1.0 -> 4.1.0
* [new tag] 4.1.1 -> 4.1.1
* [new tag] 4.1.10 -> 4.1.10
* [new tag] 4.1.11 -> 4.1.11
* [new tag] 4.1.12 -> 4.1.12
* [new tag] 4.1.13 -> 4.1.13
* [new tag] 4.1.14 -> 4.1.14
* [new tag] 4.1.15 -> 4.1.15
* [new tag] 4.1.2 -> 4.1.2
* [new tag] 4.1.3 -> 4.1.3
* [new tag] 4.1.4 -> 4.1.4
* [new tag] 4.1.5 -> 4.1.5
* [new tag] 4.1.6 -> 4.1.6
* [new tag] 4.1.7 -> 4.1.7
* [new tag] 4.1.8 -> 4.1.8
==> Resetting /opt/homebrew...
branch 'master' set up to track 'origin/master'.
Switched to and reset branch 'master'
Your branch is up to date with 'origin/master'.
标签:macOS,4.1,4.0,unknown,MacOSVersionError,rvm,tag,master,new
From: https://www.cnblogs.com/guanchaoguo/p/17758771.html