日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

macOS 10.14 mojave安装低版本iTunes 12.6.x

發布時間:2024/9/30 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 macOS 10.14 mojave安装低版本iTunes 12.6.x 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

下載iTunes 12.6版本:https://support.apple.com/zh-cn/HT208079

安裝低版本iTunes

利用腳本編輯器運行腳本安裝低版本iTunes:

關閉SIP系統完整性保護

  • 打開Mac終端輸入命令:csrutil status
$ csrutil status
  • 默認情況下是開啟的
System Integrity Protection status: enabled.
  • 重啟電腦,按住鍵盤上面的cmmand+r,進入修復模式
    點擊實用工具,選擇終端

輸入命令:csrutil disable

$ csrutil disable
  • 再次重啟電腦

  • 建議這里記得安裝完成后改回來,開啟SIP和前面的操作一致,在修復模式下,輸入命令csrutil enabled

$ csrutil enabled

打開腳本編輯器,將以下代碼復制到腳本編輯器運行(卸載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" thendo shell script "rm -rf /Applications/iTunes.app" with administrator privilegesdisplay 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 theDMGdo 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" thendisplay dialog "iTunes was not deleted" buttons {"Ok"}return end ifset 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" thendo shell script "open ~/Desktop/iTunes.pkg"return end if if answer is equal to "No" thendisplay dialog "Modified iTunes.pkg saved on desktop" buttons {"Ok"}return end if

運行后根據提示卸載安裝。

如果提示 iTunes Library.itl 錯誤,打開終端運行命令:sudo rm ~/Music/iTunes/iTunes\ Library.itl

$ sudo rm ~/Music/iTunes/iTunes\ Library.itl

或者:

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" thendo shell script "open ~/Desktop/iTunes.pkg"return end if if answer is equal to "No" thendisplay dialog "Modified iTunes.pkg saved on desktop" buttons {"Ok"}return end if

運行腳本卸載iTunes后,按照腳本提示選擇12.6版本iTunes的安裝包進行安裝即可。

總結

以上是生活随笔為你收集整理的macOS 10.14 mojave安装低版本iTunes 12.6.x的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。