Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arw

macrumors 65816
Aug 31, 2010
1,092
857
@bogdanw I used to use iTunes via Retroactive and now I tried your plist mod.
It's working fine per se, but none of my scripts are anymore. Like if you try in Terminal:
/usr/bin/osascript -e 'tell application "iTunes" to playpause'
it returns:
execution error: Not authorized to send Apple events to iTunes. (-1743)
There is nothing to tick in Security & Privacy > Automation
Any ideas? Thanks!

EDIT: Ok, the problems originate from modifying the version number in Info.plist and version.plist.
All functions work (including iPod sync) if I simply take the unmodified iTunes.app from Mojave and start it with:
Bash:
#!/bin/bash
/Applications/iTunes.app/Contents/MacOS/iTunes & exit
But this leaves the prohibited iTunes icon and it can't be started by double-clicking the iTunes.app.

Btw, Retroactive additionally does this:
Bash:
export DYLD_FRAMEWORK_PATH="${iTunes_PATH}/iTunes.app/Contents/Frameworks"
export DYLD_LIBRARY_PATH="${iTunes_PATH}/iTunes.app/Contents/Frameworks"
 
Last edited:

bogdanw

macrumors 603
Original poster
Mar 10, 2009
5,699
2,732
@arw On Ventura 13.1, iTunes 12.6.5.3 installed with this method https://forums.macrumors.com/threads/itunes-12-6-5-3-on-apple-silicon.2354390/ running the script (tell application "iTunes" to playpause) from Terminal returns the same error, but it’s working from Script Editor.
It’s probably a new restriction. I’ll look into ways of bypassing it, if you really need to run the script from Terminal.

iTunes installed with Retroactive is not the original iTunes.It’s iTunes from Apple packaged into an app named iTunes made by the Retroactive developer. Look into Contents/MacOS.
 
  • Like
Reactions: katbel and arw

arw

macrumors 65816
Aug 31, 2010
1,092
857
I'm still on Big Sur.
As soon as I modify anything in the original iTunes.app (even like re-save the Info.plist) I get the execution error.
It works directly from Script Editor, but not if the same AppleScript is executed by another app (in my case a shortcut through BetterTouchTool).
I can only suspect it is due to a checksum/codesign mismatch.
Yes, I know Retroactive puts the original iTunes.app in a sub folder of its own version app called iTunes.
That's probably how the version restriction and prohibited icon is bypassed (without re-signing the original app).

It'd be great (but not urgent) if there was a way the modified iTunes.app would behave like the unmodified one.
As mentioned, everything works fine with the unmodified iTunes.app by executing /Applications/iTunes.app/Contents/MacOS/iTunes but it's not too elegant and the icon has the prohibited sign.
 
Last edited:

bogdanw

macrumors 603
Original poster
Mar 10, 2009
5,699
2,732
It might be as simple as using touch after modifying iTunes.
Code:
touch /Applications/iTunes.app
 

arw

macrumors 65816
Aug 31, 2010
1,092
857
It might be as simple as using touch after modifying iTunes.
Unfortunately not. Thanks though.
I get the same execution error when trying the /usr/bin/osascript -e 'tell application "iTunes" to playpause'.
When I insert the original /Applications/iTunes.app/Contents/Info.plist it works again.
 

bogdanw

macrumors 603
Original poster
Mar 10, 2009
5,699
2,732
For some reason, Suspicious Package takes longer than before to analyze the pkg, so the script from post #43 fails in Big Sur and Monterey.

So, here is another method to get iTunes 12.9.5.5, tested on Monterey. For the most part, this replicates what Retroactive does.

Before beginning, delete iTunes from Applications, ~/tmp and ~/tmpcore from your home folder, if they exist.

- Download the InstallESDDmg.pkg for Mojave 10.14.6 from Apple
Code:
https://swcdn.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/InstallESDDmg.pkg

Note: if you have Install macOS Mojave.app, you don’t have to download InstallESDDmg.pkg, you can just mount InstallESD.dmg from its /Contents/SharedSupport/ and continue with the sudo pkgutil command below.

- The pkg is acctually a dmg, so we can mount it and extract all the contents of Core.pkg. Be patient, pkgutil --expand takes a long time and requires more than 12GB of free space. From Terminal:

Code:
hdiutil attach ~/Downloads/InstallESDDmg.pkg -noverify -nobrowse

sudo pkgutil --expand-full /Volumes/InstallESD/Packages/Core.pkg ~/tmpcore

hdiutil unmount /Volumes/InstallESD/

* Optional, create a zipped copy of the original iTunes 12.9.5.5, saved on your Desktop as iTunes12.9.5.5_Original.zip

Code:
ditto -c -k --sequesterRsrc --keepParent ~/tmpcore/Payload/Applications/iTunes.app ~/Desktop/iTunes12.9.5.5_Original.zip

- Modify iTunes 12.9.5.5 to work on macOS Catalina and above

Code:
ditto ~/tmpcore/Payload/Applications/iTunes.app ~/tmp/iTunes.app

plutil -replace CFBundleGetInfoString -string 'iTunes 13.9.5.5' ~/tmp/iTunes.app/Contents/Info.plist

plutil -replace CFBundleShortVersionString -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist

plutil -replace CFBundleVersion -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist

* Optional, create a zipped copy of the modified iTunes, saved on your Desktop as iTunes12.9.5.5_Patched.zip

Code:
ditto -c -k --sequesterRsrc --keepParent ~/tmp/iTunes.app ~/Desktop/iTunes12.9.5.5_Patched.zip

- Copy the modified iTunes into Applications

Code:
ditto ~/tmp/iTunes.app /Applications/iTunes.app

- Start iTunes

Code:
open -a /Applications/iTunes.app

- Clean-up: delete from Finder ~/tmp and ~/tmpcore, or from Terminal

Code:
rm -rf ~/tmp

sudo rm -rf ~/tmpcore


*Post edited to correct one misspelled command and to add the note about Install macOS Mojave.app
 
Last edited:
  • Like
Reactions: Insidious and arw

rotoyouoio

macrumors newbie
Jun 21, 2012
9
3
I'm still on Big Sur.
As soon as I modify anything in the original iTunes.app (even like re-save the Info.plist) I get the execution error.
It works directly from Script Editor, but not if the same AppleScript is executed by another app (in my case a shortcut through BetterTouchTool).
I can only suspect it is due to a checksum/codesign mismatch.
Yes, I know Retroactive puts the original iTunes.app in a sub folder of its own version app called iTunes.
That's probably how the version restriction and prohibited icon is bypassed (without re-signing the original app).

It'd be great (but not urgent) if there was a way the modified iTunes.app would behave like the unmodified one.
As mentioned, everything works fine with the unmodified iTunes.app by executing /Applications/iTunes.app/Contents/MacOS/iTunes but it's not too elegant and the icon has the prohibited sign.
to be able for third party apps to control/monitor itunes via scripting I have removed code signature from itunes and then hard linked its frameworks with install_name_tool. itunes throws a 42408 error but now Audirvana Plus works =0)
Code:
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_musicid.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_submit.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib
sudo codesign --remove-signature /Applications/iTunes.app

this way itunes will only work from the applications folder. xcode (or only developer tools?) is needed
 
Last edited:
  • Like
Reactions: Grumpus and bogdanw

bogdanw

macrumors 603
Original poster
Mar 10, 2009
5,699
2,732
this way itunes will only work from the applications folder. xcode (or only developer tools?) is needed
Only Command Line Tools, installed with
Code:
xcode-select –install
/Library/Developer/CommandLineTools/usr/bin/install_name_tool
 

Lounge Deluxe

macrumors regular
Jun 1, 2009
152
20
Amsterdam
I've successfully installed Monterey on my unsupported mid 2014 Mbp and then installed iTunes 10.7 using the amazing Retroactive app. I've also found a script named NoTunes to disable Music.app, however I still cannot make Monterey aware that iTunes should be the default music player hence my media control buttons do not work and utilities like WhatsOn also won't recognise iTunes.

Is there a fix to this under Monterey? 😬
 

bogdanw

macrumors 603
Original poster
Mar 10, 2009
5,699
2,732
I still cannot make Monterey aware that iTunes should be the default music player hence my media control buttons do not work
@PencilNotPen asked something similar https://forums.macrumors.com/threads/itunes-12-6-5-3-on-macos-catalina-10-15.2184518/post-29260087 and mentioned "Media Keys Enabler app on Github".
I presume it's this one https://github.com/milgra/macmediakeyforwarder
There might be an alternative solution using USB Overdrive https://gist.github.com/NoobsArePeople2/5121597
 
  • Like
Reactions: Lounge Deluxe

niegpie

macrumors newbie
Aug 3, 2023
5
0
For some reason, Suspicious Package takes longer than before to analyze the pkg, so the script from post #43 fails in Big Sur and Monterey.

So, here is another method to get iTunes 12.9.5.5, tested on Monterey. For the most part, this replicates what Retroactive does.

Before beginning, delete iTunes from Applications, ~/tmp and ~/tmpcore from your home folder, if they exist.

- Download the InstallESDDmg.pkg for Mojave 10.14.6 from Apple
Code:
https://swcdn.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/InstallESDDmg.pkg

Note: if you have Install macOS Mojave.app, you don’t have to download InstallESDDmg.pkg, you can just mount InstallESD.dmg from its /Contents/SharedSupport/ and continue with the sudo pkgutil command below.

- The pkg is acctually a dmg, so we can mount it and extract all the contents of Core.pkg. Be patient, pkgutil --expand takes a long time and requires more than 12GB of free space. From Terminal:

Code:
hdiutil attach ~/Downloads/InstallESDDmg.pkg -noverify -nobrowse

sudo pkgutil --expand-full /Volumes/InstallESD/Packages/Core.pkg ~/tmpcore

hdiutil unmount /Volumes/InstallESD/

* Optional, create a zipped copy of the original iTunes 12.9.5.5, saved on your Desktop as iTunes12.9.5.5_Original.zip

Code:
ditto -c -k --sequesterRsrc --keepParent ~/tmpcore/Payload/Applications/iTunes.app ~/Desktop/iTunes12.9.5.5_Original.zip

- Modify iTunes 12.9.5.5 to work on macOS Catalina and above

Code:
ditto ~/tmpcore/Payload/Applications/iTunes.app ~/tmp/iTunes.app

plutil -replace CFBundleGetInfoString -string 'iTunes 13.9.5.5' ~/tmp/iTunes.app/Contents/Info.plist

plutil -replace CFBundleShortVersionString -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist

plutil -replace CFBundleVersion -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist

* Optional, create a zipped copy of the modified iTunes, saved on your Desktop as iTunes12.9.5.5_Patched.zip

Code:
ditto -c -k --sequesterRsrc --keepParent ~/tmp/iTunes.app ~/Desktop/iTunes12.9.5.5_Patched.zip

- Copy the modified iTunes into Applications

Code:
ditto ~/tmp/iTunes.app /Applications/iTunes.app

- Start iTunes

Code:
open -a /Applications/iTunes.app

- Clean-up: delete from Finder ~/tmp and ~/tmpcore, or from Terminal

Code:
rm -rf ~/tmp

sudo rm -rf ~/tmpcore


*Post edited to correct one misspelled command and to add the note about Install macOS Mojave.app
Hi, this doesn't work on 12.6.1.

iTunes crashes with these error:

open -a /Applications/iTunes.app
The application /Applications/iTunes.app cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x60000339e610 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}

--------------
With manually open it from Application Folder, the error report is:

Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: CODESIGNING 1

Triggered by Thread: 0

Thread 0 Crashed:
0 0x7ff7fff56a8c 0x7ff7fff53000 + 14988


Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x0000000000000000
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x0000000000000000 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x0000000000000000 x23: 0x0000000000000000
x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x0000000000000000 lr: 0x0000000000000000
sp: 0x000000030637dbe8 pc: 0x00007ff7fff56a8c cpsr: 0x00001000
far: 0x0000000000000000 esr: 0x00000000 Address size fault

Binary Images:
0x7ff7fff53000 - 0x7ff7fff82fff (*) <419e294c-6e25-389b-a0f2-b3d7c56a046e> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

--------------------

Is there a fix to this under Monterey? Thanks.
 

niegpie

macrumors newbie
Aug 3, 2023
5
0
Hi, this doesn't work on 12.6.1.

iTunes crashes with these error:

open -a /Applications/iTunes.app
The application /Applications/iTunes.app cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x60000339e610 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}

--------------
With manually open it from Application Folder, the error report is:

Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: CODESIGNING 1

Triggered by Thread: 0

Thread 0 Crashed:
0 0x7ff7fff56a8c 0x7ff7fff53000 + 14988


Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x0000000000000000
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x0000000000000000 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x0000000000000000 x23: 0x0000000000000000
x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x0000000000000000 lr: 0x0000000000000000
sp: 0x000000030637dbe8 pc: 0x00007ff7fff56a8c cpsr: 0x00001000
far: 0x0000000000000000 esr: 0x00000000 Address size fault

Binary Images:
0x7ff7fff53000 - 0x7ff7fff82fff (*) <419e294c-6e25-389b-a0f2-b3d7c56a046e> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

--------------------

Is there a fix to this under Monterey? Thanks.
I test again, iTunes can run with SIP disabled.

Is there a way to run iTunes with SIP enabled?
 

joeriwww

macrumors newbie
Sep 28, 2023
3
0
Do you have Rosetta installed?
https://support.apple.com/en-us/HT211861
iTunes 12.9.5.5 created as described in post 357 is woking on Intel Ventura 13.5 with SIP enabled.
View attachment 2241411
I created the patched version as described in 357, running 13.5 on mbp M2 max with rosetta installed and SIP enabled and i get these errors, not sure what im doing wrong? Does it have to be intel?

In terminal:

The application /Applications/iTunes.app cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600003e00870 {Error Domain=NSPOSIXErrorDomain Code=162 "Unknown error: 162" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}

And report:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: FD2539DF-9B73-4CBA-ACD4-E6EC7B698387
CrashReporter Key: 48F6DA1B-2DEB-37C4-AF77-D59926F92F04
Hardware Model: Mac14,5
Process: iTunes [8469]
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Identifier: com.apple.iTunes
Version: 13.9.5 (13.9.5)
Code Type: X86-64 (Native)
Role: Default
Parent Process: launchd [1]
Coalition: com.apple.iTunes [9129]

Date/Time: 2023-09-29 00:53:56.0462 +0200
Launch Time: 2023-09-29 00:53:56.0257 +0200
OS Version: macOS 13.5 (22G74)
Release Type: User
Report Version: 104

Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: CODESIGNING 1 Taskgated Invalid Signature

Triggered by Thread: 0

Thread 0 Crashed:
0 ??? 0x7ff7ffbd077c 0x7ff7ffbcd000 + 14204


Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x0000000000000000
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x0000000000000000 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x0000000000000000 x23: 0x0000000000000000
x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x0000000000000000 lr: 0x0000000000000000
sp: 0x0000000307639be8 pc: 0x00007ff7ffbd077c cpsr: 0x00001000
far: 0x0000000000000000 esr: 0x00000000 Address size fault

Binary Images:
0x202c04000 - 0x202c9ffff @߭o (*) <31e1c182-e611-3883-97a3-4334a21c90bd> @߭o
0x7ff7ffbcd000 - 0x7ff7ffbfcfff ??? (*) <15ccd9bf-9a15-3540-a1ff-3abea3e2ca9d> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

EOF
 

bogdanw

macrumors 603
Original poster
Mar 10, 2009
5,699
2,732
I created the patched version as described in 357, running 13.5 on mbp M2 max with rosetta installed and SIP enabled and i get these errors, not sure what im doing wrong? Does it have to be intel?
I’ve tried today on MBA M1, Sonoma 14.0 with SIP enabled and I encountered the same errors. I don’t know how to fix them. But iTunes 12.9.5.5 works on the same MBA M1 Sonoma with SIP disabled.
If you don’t want to disable SIP, you could try to install iTunes with Retroactive https://github.com/cormiertyshawn895/Retroactive
 

Grumpus

macrumors regular
Jan 17, 2021
234
157
I’ve tried today on MBA M1, Sonoma 14.0 with SIP enabled and I encountered the same errors. I don’t know how to fix them. ...
Does removing the signature help, as in @rotoyouoio's post?
Code:
sudo codesign --remove-signature /Applications/iTunes.app
I don't have an AS machine to try this on.
 

bogdanw

macrumors 603
Original poster
Mar 10, 2009
5,699
2,732
Good news, I’ve re-enabled SIP and tested the install_name_tool solution.
iTunes 12.9.5.5 works on Apple Silicon with SIP enabled.
Instead of just removing the signature, I've sign it with an ad-hoc signature:

Code:
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_musicid.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_submit.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib

sudo codesign -fs - --deep /Applications/iTunes.app

It’s probably best to put the commands in a script file (sh), rather that copy-pasting them one by one.

Thanks to @rotoyouoio and @crystall1nedev for the solution.
https://github.com/cormiertyshawn895/Retroactive/issues/388
 
  • Like
Reactions: katbel and Grumpus

joeriwww

macrumors newbie
Sep 28, 2023
3
0
I disabled SIP but now I get the -42408 error every time i boot, and it seems like it doesn't read my library.
Am currently updating to Sonoma, reenabling SIP and running the script provided here, will lyk how it goes!
Good news, I’ve re-enabled SIP and tested the install_name_tool solution.
iTunes 12.9.5.5 works on Apple Silicon with SIP enabled.
Instead of just removing the signature, I've sign it with an ad-hoc signature:

Code:
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_musicid.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_submit.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib /Applications/iTunes.app/Contents/MacOS/iTunes
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_dsp.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_musicid.3.06.1.dylib
install_name_tool -change @executable_path/../Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_manager.3.06.1.dylib /Applications/iTunes.app/Contents/Frameworks/libgnsdk_submit.3.06.1.dylib

sudo codesign -fs - --deep /Applications/iTunes.app

It’s probably best to put the commands in a script file (sh), rather that copy-pasting them one by one.

Thanks to @rotoyouoio and @crystall1nedev for the solution.
https://github.com/cormiertyshawn895/Retroactive/issues/388
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.