macOS Mojave 降级安装 iTunes 12.6.5

适用于 macOS Mojave 10.14.3、10.14.4 及以上

  1. 下载 iTunes 12.6.5 secure-appldnld.apple.com
    了解相关知识 support.apple.com/zh-cn

2. 临时关闭 System Integrity Protection,简称 SIP
关于 Mac 上的系统完整性保护(SIP) support.apple.com/zh-cn
a. 重启电脑,按住 Command + R,进入恢复模式
b. 点击 “实用工具”,选择 “终端”,输入命令 “csrutil disable”
c. 确认并回车,然后重启电脑

3. “启动台” - “其他” 文件夹 - 启动 “脚本编辑器”,复制下面代码并运行;

set question to display dialog "Delete iTtunes?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
    do shell script "rm -rf /Applications/iTunes.app" with administrator privileges
    display dialog "iTunes was deleted" buttons {"Ok"}
    set theDMG to choose file with prompt "Please select iTunes 12.6 dmg file:" of type {"dmg"}
    do shell script "hdiutil mount " & quoted form of POSIX path of theDMG
    do shell script "pkgutil --expand /Volumes/iTunes/Install\\ iTunes.pkg ~/tmp"
    do shell script "sed -i '' 's/18A1/14F2511/g' ~/tmp/Distribution"
    do shell script "sed -i '' 's/gt/lt/g' ~/tmp/Distribution"
    do shell script "pkgutil --flatten ~/tmp ~/Desktop/iTunes.pkg"
    do shell script "hdiutil unmount /Volumes/iTunes/"
    do shell script "rm -rf ~/tmp"
end if
if answer is equal to "No" then
    display dialog "iTunes was not deleted" buttons {"Ok"}
    return
end if

set question to display dialog "Install iTtunes?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
    do shell script "open ~/Desktop/iTunes.pkg"
    return
end if
if answer is equal to "No" then
    display dialog "Modified iTunes.pkg saved on desktop" buttons {"Ok"}
    return
end if

按照提示选择下载的 iTunes 12.6.5 安装包,稍等片刻后安装完成。

4. 启动 iTunes 时提示 “iTunes Library.itl” 错误,则删除 Music 目录下 iTunes 文件夹内 “iTunes Library.itl” 文件;

5. macOS Mojave 10.14.4及更高版本,启动 iTunes 时如果提示不支持当前版本,则需要:

a. 在 iTunes 应用上右键 “显示包内容”
b. 进入 “Contents” 目录
c. 使用文本编辑器打开 “Info.plist” 文件,搜索 “12.6.5” 字段替换为 “12.8.0” 或更高的版本号
d.保存文件

6. 恭喜你,macOS Mojave 成功降级安装 iTunes 至 12.6.5 版本

7. 最后重启电脑,按住 Command + R 进入恢复模式,在 “终端” 输入 “csrutil enabled” 确认回车以恢复 SIP。

编辑于 2019-06-15