thebitguru / play-button-itunes-patch

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

Problem with code signing rcd #22

Closed q42jaap closed 8 years ago

q42jaap commented 9 years ago

After applying the patch, some things start crashing, fortunately, restoring the backup works very well... However, I would still like to patch the stupid play button starting itunes...

q42jaap commented 9 years ago
2015/06/16 23:41:15:186 | INFO | AppDelegate:65 - --------------- New session - Version 1.0 ---------------
2015/06/16 23:41:15:189 | INFO | AppDelegate:66 - Log file directory: /Users/jaap/Library/Logs/Play Button iTunes Patch
2015/06/16 23:41:15:189 | INFO | AppDelegate:78 - OS Version: Version 10.10.3 (Build 14D2134)
2015/06/16 23:41:15:190 | DEBUG | Patcher:21 - Initializing.
2015/06/16 23:41:15:190 | DEBUG | Patcher:22 - RCD_PATH: /System/Library/CoreServices/rcd.app/Contents/MacOS/
2015/06/16 23:41:15:190 | DEBUG | Patcher:31 - Find command data: <74656c6c 20617070 6c696361 74696f6e 20696420 22636f6d 2e617070 6c652e69 54756e65 73222074 6f206c61 756e6368>
2015/06/16 23:41:15:190 | DEBUG | Patcher:32 - Replace command data: <2d2d6c6c 20617070 6c696361 74696f6e 20696420 22636f6d 2e617070 6c652e69 54756e65 73222074 6f206c61 756e6368>
2015/06/16 23:41:15:190 | DEBUG | Patcher:41 - Finished initializing.
2015/06/16 23:41:15:190 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:41:15:191 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:41:15:192 | INFO | Patcher:142 - File: rcd, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-03-24 03:56:57 +0000, Comments: Unpatched.
2015/06/16 23:41:15:197 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 0
2015/06/16 23:41:15:197 | WARNING | Patcher:71 - Command line tools NOT installed.
2015/06/16 23:41:15:197 | INFO | AppDelegate:180 - File is unpatched.
2015/06/16 23:41:15:197 | INFO | AppDelegate:189 - No backups found.
2015/06/16 23:41:15:198 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:45:52:671 | INFO | AppDelegate:92 - =============== applicationWillTerminate ===============
2015/06/16 23:51:59:619 | INFO | AppDelegate:65 - --------------- New session - Version 1.0 ---------------
2015/06/16 23:51:59:621 | INFO | AppDelegate:66 - Log file directory: /Users/jaap/Library/Logs/Play Button iTunes Patch
2015/06/16 23:51:59:622 | INFO | AppDelegate:78 - OS Version: Version 10.10.3 (Build 14D2134)
2015/06/16 23:51:59:622 | DEBUG | Patcher:21 - Initializing.
2015/06/16 23:51:59:622 | DEBUG | Patcher:22 - RCD_PATH: /System/Library/CoreServices/rcd.app/Contents/MacOS/
2015/06/16 23:51:59:623 | DEBUG | Patcher:31 - Find command data: <74656c6c 20617070 6c696361 74696f6e 20696420 22636f6d 2e617070 6c652e69 54756e65 73222074 6f206c61 756e6368>
2015/06/16 23:51:59:623 | DEBUG | Patcher:32 - Replace command data: <2d2d6c6c 20617070 6c696361 74696f6e 20696420 22636f6d 2e617070 6c652e69 54756e65 73222074 6f206c61 756e6368>
2015/06/16 23:51:59:623 | DEBUG | Patcher:41 - Finished initializing.
2015/06/16 23:51:59:623 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:51:59:623 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:51:59:625 | INFO | Patcher:142 - File: rcd, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-03-24 03:56:57 +0000, Comments: Unpatched.
2015/06/16 23:51:59:630 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:51:59:630 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:51:59:630 | INFO | AppDelegate:180 - File is unpatched.
2015/06/16 23:51:59:631 | INFO | AppDelegate:189 - No backups found.
2015/06/16 23:51:59:631 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:52:05:629 | INFO | AppDelegate:362 - Use requested to patch...
2015/06/16 23:52:05:635 | INFO | AppDelegate:380 - Xcode command line tools are installed.
2015/06/16 23:52:26:864 | INFO | AppDelegate:393 - Requesting patch...
2015/06/16 23:52:26:865 | INFO | Patcher:161 - Patching rcd...
2015/06/16 23:52:26:865 | INFO | Patcher:176 - Replaced instance #1 at 30754:48
2015/06/16 23:52:26:865 | INFO | Patcher:171 - No more instances.
2015/06/16 23:52:26:865 | INFO | Patcher:184 - Replaced 1 total instances
2015/06/16 23:52:31:872 | INFO | Patcher:204 - Creating backup file /System/Library/CoreServices/rcd.app/Contents/MacOS//rcd_backup_1.0_20150616_23_52.31 before overwriting rcd.
2015/06/16 23:52:31:872 | DEBUG | Patcher:280 - writeDataToProtectedFile: /System/Library/CoreServices/rcd.app/Contents/MacOS//rcd_backup_1.0_20150616_23_52.31
2015/06/16 23:52:31:881 | INFO | Patcher:209 - Writing the updated bytes to original file (/System/Library/CoreServices/rcd.app/Contents/MacOS//rcd).
2015/06/16 23:52:31:881 | DEBUG | Patcher:280 - writeDataToProtectedFile: /System/Library/CoreServices/rcd.app/Contents/MacOS//rcd
2015/06/16 23:52:31:888 | INFO | Patcher:214 - Signing file.
2015/06/16 23:52:35:001 | ERROR | Patcher:334 - codesign task returned false!
2015/06/16 23:52:35:002 | ERROR | AppDelegate:397 - Problem patching file: Could not codesign the modified binary.
2015/06/16 23:52:39:666 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:52:39:666 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:52:39:667 | INFO | Patcher:142 - File: rcd, Patched: 1, MD5: f3d6fae59930022c5ab10152376cc08c, Date modified: 2015-06-16 21:52:31 +0000, Comments: Patched.
2015/06/16 23:52:39:668 | INFO | Patcher:142 - File: rcd_backup_1.0_20150616_23_52.31, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-06-16 21:52:31 +0000, Comments: Backup file. Unpatched.
2015/06/16 23:52:39:673 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:52:39:673 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:52:39:673 | INFO | AppDelegate:177 - File is already patched.
2015/06/16 23:52:39:673 | INFO | AppDelegate:185 - Backups found, enabling restore button.
2015/06/16 23:52:39:673 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:53:01:545 | INFO | AppDelegate:92 - =============== applicationWillTerminate ===============
2015/06/16 23:55:05:445 | INFO | AppDelegate:65 - --------------- New session - Version 1.0 ---------------
2015/06/16 23:55:05:448 | INFO | AppDelegate:66 - Log file directory: /Users/jaap/Library/Logs/Play Button iTunes Patch
2015/06/16 23:55:05:449 | INFO | AppDelegate:78 - OS Version: Version 10.10.3 (Build 14D2134)
2015/06/16 23:55:05:449 | DEBUG | Patcher:21 - Initializing.
2015/06/16 23:55:05:449 | DEBUG | Patcher:22 - RCD_PATH: /System/Library/CoreServices/rcd.app/Contents/MacOS/
2015/06/16 23:55:05:449 | DEBUG | Patcher:31 - Find command data: <74656c6c 20617070 6c696361 74696f6e 20696420 22636f6d 2e617070 6c652e69 54756e65 73222074 6f206c61 756e6368>
2015/06/16 23:55:05:449 | DEBUG | Patcher:32 - Replace command data: <2d2d6c6c 20617070 6c696361 74696f6e 20696420 22636f6d 2e617070 6c652e69 54756e65 73222074 6f206c61 756e6368>
2015/06/16 23:55:05:450 | DEBUG | Patcher:41 - Finished initializing.
2015/06/16 23:55:05:450 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:55:05:450 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:55:05:451 | INFO | Patcher:142 - File: rcd, Patched: 1, MD5: f3d6fae59930022c5ab10152376cc08c, Date modified: 2015-06-16 21:52:31 +0000, Comments: Patched.
2015/06/16 23:55:05:451 | INFO | Patcher:142 - File: rcd_backup_1.0_20150616_23_52.31, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-06-16 21:52:31 +0000, Comments: Backup file. Unpatched.
2015/06/16 23:55:05:456 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:55:05:456 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:55:05:457 | INFO | AppDelegate:177 - File is already patched.
2015/06/16 23:55:05:457 | INFO | AppDelegate:185 - Backups found, enabling restore button.
2015/06/16 23:55:05:458 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:55:09:394 | INFO | AppDelegate:256 - Restore from backup clicked...
2015/06/16 23:55:09:395 | INFO | AppDelegate:328 - There is only one backup file: rcd_backup_1.0_20150616_23_52.31
2015/06/16 23:55:09:395 | INFO | AppDelegate:333 - Requesting restore from patcher.
2015/06/16 23:55:09:395 | INFO | Patcher:229 - Kicking off restore from backup file rcd_backup_1.0_20150616_23_52.31
2015/06/16 23:55:14:375 | INFO | Patcher:242 - Killing existing rcd processes...
2015/06/16 23:55:14:375 | INFO | Patcher:303 - Killing all rcd.
2015/06/16 23:55:17:444 | INFO | Patcher:311 - killall returned 'No matching porcesses were found'
2015/06/16 23:55:17:444 | INFO | Patcher:318 - Restarting rcd process as current user.
2015/06/16 23:55:17:450 | INFO | Patcher:245 - Restore complete.
2015/06/16 23:55:17:450 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:55:17:450 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:55:17:451 | INFO | Patcher:142 - File: rcd, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-06-16 21:52:31 +0000, Comments: Unpatched.
2015/06/16 23:55:17:455 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:55:17:455 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:55:17:455 | INFO | AppDelegate:180 - File is unpatched.
2015/06/16 23:55:17:455 | INFO | AppDelegate:189 - No backups found.
2015/06/16 23:55:17:456 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:55:17:456 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:55:17:456 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:55:17:456 | INFO | Patcher:142 - File: rcd, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-06-16 21:52:31 +0000, Comments: Unpatched.
2015/06/16 23:55:17:460 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:55:17:460 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:55:17:461 | INFO | AppDelegate:180 - File is unpatched.
2015/06/16 23:55:17:461 | INFO | AppDelegate:189 - No backups found.
2015/06/16 23:55:17:461 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:55:43:318 | INFO | AppDelegate:92 - =============== applicationWillTerminate ===============
2015/06/16 23:56:53:953 | INFO | AppDelegate:65 - --------------- New session - Version 1.0 ---------------
2015/06/16 23:56:53:955 | INFO | AppDelegate:66 - Log file directory: /Users/jaap/Library/Logs/Play Button iTunes Patch
2015/06/16 23:56:53:956 | INFO | AppDelegate:78 - OS Version: Version 10.10.3 (Build 14D2134)
2015/06/16 23:56:53:956 | DEBUG | Patcher:21 - Initializing.
2015/06/16 23:56:53:956 | DEBUG | Patcher:22 - RCD_PATH: /System/Library/CoreServices/rcd.app/Contents/MacOS/
2015/06/16 23:56:53:956 | DEBUG | Patcher:31 - Find command data: <74656c6c 20617070 6c696361 74696f6e 20696420 22636f6d 2e617070 6c652e69 54756e65 73222074 6f206c61 756e6368>
2015/06/16 23:56:53:957 | DEBUG | Patcher:32 - Replace command data: <2d2d6c6c 20617070 6c696361 74696f6e 20696420 22636f6d 2e617070 6c652e69 54756e65 73222074 6f206c61 756e6368>
2015/06/16 23:56:53:957 | DEBUG | Patcher:41 - Finished initializing.
2015/06/16 23:56:53:957 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:56:53:957 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:56:53:958 | INFO | Patcher:142 - File: rcd, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-06-16 21:52:31 +0000, Comments: Unpatched.
2015/06/16 23:56:53:962 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:56:53:962 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:56:53:962 | INFO | AppDelegate:180 - File is unpatched.
2015/06/16 23:56:53:963 | INFO | AppDelegate:189 - No backups found.
2015/06/16 23:56:53:963 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:56:58:813 | INFO | AppDelegate:362 - Use requested to patch...
2015/06/16 23:56:58:818 | INFO | AppDelegate:380 - Xcode command line tools are installed.
2015/06/16 23:57:00:743 | INFO | AppDelegate:393 - Requesting patch...
2015/06/16 23:57:00:743 | INFO | Patcher:161 - Patching rcd...
2015/06/16 23:57:00:743 | INFO | Patcher:176 - Replaced instance #1 at 30754:48
2015/06/16 23:57:00:743 | INFO | Patcher:171 - No more instances.
2015/06/16 23:57:00:744 | INFO | Patcher:184 - Replaced 1 total instances
2015/06/16 23:57:06:577 | INFO | Patcher:204 - Creating backup file /System/Library/CoreServices/rcd.app/Contents/MacOS//rcd_backup_1.0_20150616_23_57.06 before overwriting rcd.
2015/06/16 23:57:06:577 | DEBUG | Patcher:280 - writeDataToProtectedFile: /System/Library/CoreServices/rcd.app/Contents/MacOS//rcd_backup_1.0_20150616_23_57.06
2015/06/16 23:57:06:586 | INFO | Patcher:209 - Writing the updated bytes to original file (/System/Library/CoreServices/rcd.app/Contents/MacOS//rcd).
2015/06/16 23:57:06:586 | DEBUG | Patcher:280 - writeDataToProtectedFile: /System/Library/CoreServices/rcd.app/Contents/MacOS//rcd
2015/06/16 23:57:06:592 | INFO | Patcher:214 - Signing file.
2015/06/16 23:57:10:391 | ERROR | Patcher:334 - codesign task returned false!
2015/06/16 23:57:10:392 | ERROR | AppDelegate:397 - Problem patching file: Could not codesign the modified binary.
2015/06/16 23:57:13:728 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:57:13:729 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:57:13:729 | INFO | Patcher:142 - File: rcd, Patched: 1, MD5: f3d6fae59930022c5ab10152376cc08c, Date modified: 2015-06-16 21:57:06 +0000, Comments: Patched.
2015/06/16 23:57:13:730 | INFO | Patcher:142 - File: rcd_backup_1.0_20150616_23_57.06, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-06-16 21:57:06 +0000, Comments: Backup file. Unpatched.
2015/06/16 23:57:13:735 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:57:13:735 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:57:13:735 | INFO | AppDelegate:177 - File is already patched.
2015/06/16 23:57:13:735 | INFO | AppDelegate:185 - Backups found, enabling restore button.
2015/06/16 23:57:13:736 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:57:17:083 | INFO | AppDelegate:256 - Restore from backup clicked...
2015/06/16 23:57:17:084 | INFO | AppDelegate:328 - There is only one backup file: rcd_backup_1.0_20150616_23_57.06
2015/06/16 23:57:17:084 | INFO | AppDelegate:333 - Requesting restore from patcher.
2015/06/16 23:57:17:084 | INFO | Patcher:229 - Kicking off restore from backup file rcd_backup_1.0_20150616_23_57.06
2015/06/16 23:57:20:992 | INFO | Patcher:242 - Killing existing rcd processes...
2015/06/16 23:57:20:992 | INFO | Patcher:303 - Killing all rcd.
2015/06/16 23:57:23:726 | INFO | Patcher:318 - Restarting rcd process as current user.
2015/06/16 23:57:23:732 | INFO | Patcher:245 - Restore complete.
2015/06/16 23:57:23:732 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:57:23:732 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:57:23:733 | INFO | Patcher:142 - File: rcd, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-06-16 21:57:06 +0000, Comments: Unpatched.
2015/06/16 23:57:23:737 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:57:23:737 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:57:23:737 | INFO | AppDelegate:180 - File is unpatched.
2015/06/16 23:57:23:738 | INFO | AppDelegate:189 - No backups found.
2015/06/16 23:57:23:738 | VERBOSE | AppDelegate:252 - Finished refreshing view.
2015/06/16 23:57:23:738 | INFO | AppDelegate:173 - Refreshing view...
2015/06/16 23:57:23:738 | DEBUG | Patcher:78 - Loading files and determing file statuses...
2015/06/16 23:57:23:739 | INFO | Patcher:142 - File: rcd, Patched: 0, MD5: 69a9c415dc85ddc5282d23dd29e75dec, Date modified: 2015-06-16 21:57:06 +0000, Comments: Unpatched.
2015/06/16 23:57:23:742 | DEBUG | Patcher:69 - _areCommandLineToolsInstalled = 1
2015/06/16 23:57:23:743 | INFO | Patcher:73 - Command line tools found.
2015/06/16 23:57:23:743 | INFO | AppDelegate:180 - File is unpatched.
2015/06/16 23:57:23:743 | INFO | AppDelegate:189 - No backups found.
2015/06/16 23:57:23:743 | VERBOSE | AppDelegate:252 - Finished refreshing view.
bsuh commented 9 years ago

/usr/bin/codesign is included with Xcode command line tools.

AbandonedFridge commented 8 years ago

I was having this problem with Xcode and the command line tools installed, so I tried running codesign manually and found that I just hadn't re-accepted the Xcode license as root since the last update. To fix just run sudo xcrun cc in your terminal then retry patching. Just make sure to back out of the bad patch first.

thebitguru commented 8 years ago

@q42jaap Sorry, this has been a while. I am assuming that this was fixed so I will close for now. Please reopen if it is still an issue. Thanks!