macOS10.14.6 使用itunes12.6.5

下载 itunes12.6.5

iTunes12.6.5下载链接

关闭SIP系统完整性保护

重启电脑,长按command + r 进入修复模式
点击实用工具,选择终端
在终端输入命令

$ csrutil disable

提示关闭之后,重启电脑.

卸载itunes

1.在终端输入命令 sudo -i 进入系统的root目录

sudo -i

2.继续输入命令,卸载iTunes

rm -rf /Applications/iTunes.app    

3.手动删除itunes目录

    1. ~/Library 路径下删除itunes目录
    1. ~/Music 路径下删除itunes目录

4.使用脚本编辑器

  1. 使用脚本删除itunes
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

2.通常在10.14.4+版本 脚本会报错。这时可以使用一下脚本安装

display dialog "Please select iTunes 12.6 dmg file" 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"

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

执行之后,选择已经下载好的itunes12.6安装包。
安装成功之后,先别着急打开应用,打开应用程序itunes目录。右键显示包内容,进入Contents目录,拷贝info.plist到桌面. 以我这边为例,搜索 12.6.5 更改为更高的版本,我这里改为12.9.5 。然后替换Contents目录下的info.plist文件。

5.打开itunes 即可

6.在设置完毕之后别忘记重新打开SIP系统完整性保护

步骤与关闭SIP步骤一直,在修复模式下执行命令,然后重启

$ csrutil enable
WechatIMG999.jpeg

你可能感兴趣的:(macOS10.14.6 使用itunes12.6.5)