將Mac OS升級到了macos High Sierra,打開iTunes時出現 an unknown errer occurred(-45076)。
在不想將iTunes升級至12.7(即停留版本在12.6.2)的情況下,進行如下處理(據說升級iTunes可解決問題,未嘗試):
一、關閉System Integrity Protection(SIP)
1、重啟Mac;
2、開機,同時按住 command+R ,進入Recovery模式;
3、在實用工具中選擇 終端,輸入 csrutil disable
4、重啟Mac,打開終端,輸入 csrutil status,顯示 System Integrity Protection status:disabled ,則 SIP 已關閉。
二、下載好 iTunes 12.6.2-DMG
三、將 ~/Music/iTunes/iTunes Library.itl 做個備份,用來恢復
四、打開終端,刪除iTunes
sudo rm -rf /Library/Documentation/Applications/iTunes/Acknowledgements.rtf /Library/Documentation/iPod/Acknowledgements.rtf /Library/Frameworks/iTunesLibrary.framework/ /Applications/iTunes.app/ /System/Library/PrivateFrameworks/iTunesAccess.framework/ /System/Library/LaunchDaemons/com.apple.fpsd.plist /System/Library/PrivateFrameworks/CoreFP.framework/ /System/Library/PrivateFrameworks/CoreADI.framework/ /System/Library/LaunchDaemons/com.apple.adid.plist /System/Library/CoreServices/UAUPlugins/ADIUserAccountUpdater.bundle/ /System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle/ /System/Library/LaunchDaemons/com.apple.usbmuxd.plist /System/Library/PrivateFrameworks/AirTrafficHost.framework/ /System/Library/PrivateFrameworks/DeviceLink.framework/ /System/Library/PrivateFrameworks/MobileDevice.framework/ /System/Library/Extensions/AppleMobileDevice.kext/ /System/Library/Extensions/AppleUsbEthernetHost
五、打開下載的iTunes12.6.2進行安裝
六、關閉iTunes的自動更新
sudo softwareupdate --ignore iTunesXPatch
七、打開SIP (看個人需要)