pookjw / SidecarPatcher

Enables Sidecar on old Mac and iPad for macOS 10.15

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error message and crashes after applying the Sidecar patch

blueskies7777 opened this issue · comments

Hi,
I just tried to apply the latest SidecarPatcher version on my late 2013 Macbook pro.
Something went wrong, I received an error message. Still, after patching, I was able see the Sidecar symbol in settings, and it also showed my iPad Pro as option, but it did not work, no reaction on the iPad. Instead many other programs crashed, because - according to error log messages - SidecarCore was causing Notes and Airmail to crash.
So I did a rollback.
Now I have two questions:

  1. Is the sidecar patch visible only while csrutil is disabled? I am asking, because after enabling csrutils again, Sidecar was removed from settings. I would not like to disable security for good.
  2. What does the following error message mean? Did I do something wrong? I attach all commands I've entered:

Marios-Macbook:~ n$ chmod +x /Applications/SidecarPatcher
Marios-Macbook:~ n$ sudo /Applications/SidecarPatcher
Password:
/System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A//SidecarCore: replacing existing signature
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
/System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A//SidecarCore: the codesign_allocate helper tool cannot be found or used
Reboot your macOS.

Thanks in advance for your reply!

Best regards
Mario

Question 2:

  1. Install Command Line Tools: xcode-select --install (If this command doesn't work, you can download Command Line Tools from More Software Downloads - Apple Developer.)

  2. Replace /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore to original you backed up.

  3. Run SidecarPatcher again.

If you didn't make a backup and already patched... then

  1. Install Command Line Tools: xcode-select --install (If this command doesn't work, you can download Command Line Tools from More Software Downloads - Apple Developer.)

  2. Sign patched SidecarCore: sudo codesign -f -s - /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore

  3. Set permission as 755: sudo chmod 755 /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore

Question 1 and Crashing many apps: I know that issue, but I don't have Sidecar-unsupported Mac as I said. So I don't know exactly why it happens, and how to fix it. My assumption is: If SidecarCore isn't signed, occurs issue you said. Could you try Question 2's answer and give me the result?

I have no idea about it. Anyway, thanks for giving the result.

Same flickering result here on Mid-2014 MacBook Pro with iPad Pro 1st gen, thanks for the patch anyway! 👍

@coodoo Does it work on 10.15 official release?

@coodoo Does it work on 10.15 official release?

for me, it works but only in wired mode.
My devices are MBP 2016 and iPad Air 2
but there is a little bit difference from beta version, that is in the official version, if you don't connect them via USB, you won't see any device in the status bar (but in beta version, it shows device but when you try to connect it shows error code 32002).
In wired mode, it works perfectly, I truly hope that the new version of this tweak can fix the issue of sidecar in wireless mode.

@pookjw Yes, it worked with the official release (wirelessly), but the screen was flickering so bad that it's barely usable, guess there's indeed a good reason for Apple to disable support for older macs 😅

@coodoo Does it work on 10.15 official release?

for me, it works but only in wired mode.
My devices are MBP 2016 and iPad Air 2
but there is a little bit difference from beta version, that is in the official version, if you don't connect them via USB, you won't see any device in the status bar (but in beta version, it shows device but when you try to connect it shows error code 32002).
In wired mode, it works perfectly, I truly hope that the new version of this tweak can fix the issue of sidecar in wireless mode.

how can we connect with wired mode nothing happening when i connect with wired :(