thebitguru / play-button-itunes-patch

Play Button iTunes Patch
http://www.thebitguru.com/projects/iTunesPatch
Other
644 stars 19 forks source link

App Crashes and Disappears After I Enter Password #37

Closed OliverPearmain closed 7 years ago

OliverPearmain commented 7 years ago

I've never used this application or patch before.

I installed and ran it for the first time and when I launch it says rcd is unpatched. When I press patch, I'm prompted to enter my password the first time. When I enter my password and hit OK the app immediately dies.

When I relaunch the app rcd is still unpatched. I have attempted rebooting and rerunning but get the same result everytime.

Note I do have both Xcode 7.3 and 8.1 installed.

I have SIP disabled because I also use TotalFinder which also requres this.

You've asked for a log. I don't know where the app's log files are store (might be useful if this was included in the messaging) so I've just included the log from my console. HTH.

Console.log.txt

OliverPearmain commented 7 years ago

Aha, found it :-)

com.thebitguru.Play-Button-iTunes-Patch 2016-11-17 13-07.log.txt

thebitguru commented 7 years ago

This is odd. It should be able to write with SIP disabled. I am guessing that this is still likely a permission issue. Can you share the output of the following command?

ls -la /System/Library/CoreServices/rcd.app/Contents/MacOS/

OliverPearmain commented 7 years ago

Sure, the output is...

total 48
drwxr-xr-x  3 root  wheel    102 18 Jun 08:52 .
drwxr-xr-x  7 root  wheel    238 18 Jun 08:52 ..
-rwxr-xr-x  1 root  wheel  74272  5 May  2016 rcd
OliverPearmain commented 7 years ago

FYI, here's my SIP status...

$  csrutil status
System Integrity Protection status: enabled (Custom Configuration).

Configuration:
    Apple Internal: disabled
    Kext Signing: enabled
    Filesystem Protections: enabled
    Debugging Restrictions: disabled
    DTrace Restrictions: enabled
    NVRAM Protections: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.
thebitguru commented 7 years ago

Hmm... maybe that's it. I am not sure what "custom configuration" means in this case. Do you want to try disabling it completely? You can switch it back to your custom configuration afterward.

5ilverorange commented 7 years ago

I experience the same. When I did a check on SIP, I also got the "custom configuration" message, except for mine is a bit different:

System Integrity Protection status: enabled (Custom Configuration). Configuration: Apple Internal: disabled Kext Signing: disabled Filesystem Protections: enabled Debugging Restrictions: enabled DTrace Restrictions: enabled NVRAM Protections: enabled BaseSystem Verification: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

thebitguru commented 7 years ago

@5ilverorange, from your output, it's the "Filesystem Protections" that's the issue. Having this enabled doesn't allow the utility to write the new patched file.

OliverPearmain commented 7 years ago

I have resolved my issue. I just needed to disable specifically the Filesystem Protections part of SIP (as suggested).

In case it helps others, I achieved this by booting into recovery (by holding CMD-R during bootup). Launching the Terminal (via the 'Utilities' menu) and entering the following command:

csrutil enable --without fs

Thanks for your help.

Reference: https://forums.developer.apple.com/thread/17452

thebitguru commented 7 years ago

Good to hear. Thanks for sharing your solution.