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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一、Python简介和环境搭建以及pip的安装 4课时实验课主要内容 【Python简介】: Python 是一个...
    _小老虎_阅读 5,822评论 0 10
  • 官网 中文版本 好的网站 Content-type: text/htmlBASH Section: User ...
    不排版阅读 4,467评论 0 5
  • 首先感谢原创作者:Fredericshihe大家自己喜好决定,但我不敢保证将来不会出问题,但是我敢保证不会白苹果或...
    MdWhat阅读 10,304评论 0 6
  • iTunes iTunes是由苹果公司开发的媒体播放器,媒体库,在线广播电台和移动设备管理应用程序。它用于播放,下...
    dweet阅读 1,874评论 0 0
  • 关闭电源的MacBook可在不到三分钟的时间内完成。只需几个命令,黑客就有可能在不知情的情况下提取目标的密码哈希并...
    13049047c237阅读 5,956评论 0 1