Closed maximede closed 8 years ago
Thanks for reporting, @maximede. I am guessing that this is because of OS X's new System Integrity Protection. Have you disabled it already by any chance and tried? I am guessing that many users would not want to disable it.
I am installing El Capitan GM on a macbook to see if I can find out for sure what might be going on here. I will likely have to update the app to look for SIP and inform the user appropriately.
Yup, it's SIP. I wasn't doing any error checking so the program crashes when it can't create the backup file.
9/11/15 5:18:56.763 PM sandboxd[110]: ([901]) authopen(901) System Policy: deny file-write-create /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd_backup_0.9_20150911_17_18.56
I will have to do some research to figure out the options around this, but I am afraid that we don't have many options. The short term workaround would be to disable SIP.
I'm a bit confused by this SIP stuff, can I deactivate it just for running your app ? Where can I deactivate it ?
+1 for figuring out a solution. This tool has been phenomenal and without it I'm going more than just a little insane.
Sadly having the same issue. Bartender solved it by disabling the SIP once, installed the necessary components and then re-enable SIP. I fear that this would be necessary every new iTunes release.
Sorry, been quite busy lately.
@timbru31 That's interesting. I didn't realize that you could disable, change and then re-enable. Windows's protection generally does checksums and other checks so I just assumed that OS X would do something similar and replace with the released version even if I somehow changed it, but if they don't then this could be a viable solution. I will have to look into that. Thanks for sharing!
We all are sometimes ;)
There is a command line utility to configure SIP/rootless. However this only works when in Recovery mode (booted via CMD + R)
https://developer.apple.com/library/prerelease/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html Maybe this helps you in some way.
(there is also a script that detects the SIP status from boot flags: https://forums.developer.apple.com/thread/3981#12052)
Sadly having same issue. Going insane with iTunes loading :)
As others have said, disabling SIP fixes the issue. Here is how to disable it:
Reboot your Mac into Recovery Mode by restarting your computer and holding down Command+R until the Apple logo appears on your screen. Click Utilities > Terminal. In the Terminal window, type in csrutil disable and press Enter. Restart your Mac.
Also having this issue. Is there a way around it besides disabling SIP? How would I go about manually patching the file/patching it myself?
Here is the output of the old Patch.command:
Everything is ready. Would you like to create a backup and apply the patch? (y/N) y
Patching...
+ Killed any running processes.
cp: /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd_backup_0.8.3_201511212218.55: Operation not permitted
+ Backed up the existing file as rcd_backup_0.8.3_201511212218.55
+ Patching...
Traceback (most recent call last):
File "./edit_rcd_bin.py", line 30, in <module>
with open(rcd_filepath, "r+b") as f:
IOError: [Errno 1] Operation not permitted: '/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd'
!!! Sorry, an unexpected error occurred while patching. Please email me all
of the above text and attach /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd
for troubleshooting at farhan@thebitguru.com.
+1
Same here, unfortunately.
I don't think that it would be possible to patch it without disabling SIP, if this is a problem for you, you can always reactivate it later with this command: $ crsutil enable
+1
+1
+1 this is the error I get after patching: "could not codesign the modified binary"
+1
+1
Hi Everyone,
Sorry for being AWOL. My primary job has been keeping me very busy. I have validated that the patch works by temporarily disabling SIP, patching and then re-enabling. I have added the instructions to the project page. Can you please try and let me know if it resolves the issue?
Thanks!
+1
@bluishoul, can you please try the instructions on the project page and let me know if it works for you?
After clicking on
Patch
, it asks me for my password once, after I input my password and clickok
, it silently crashI'm running El Capitan Golden Master, so I guess it'll happen with the release version on the 30th of September
Here is what I have in the logs