Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message and crashes after applying the Sidecar patch #4

Open
blueskies7777 opened this issue Sep 27, 2019 · 8 comments
Open

Error message and crashes after applying the Sidecar patch #4

blueskies7777 opened this issue Sep 27, 2019 · 8 comments

Comments

@blueskies7777
Copy link

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

@pookjw
Copy link
Owner

pookjw commented Sep 27, 2019

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?

@blueskies7777
Copy link
Author

blueskies7777 commented Sep 28, 2019 via email

@pookjw
Copy link
Owner

pookjw commented Sep 28, 2019

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

@pookjw pookjw pinned this issue Oct 1, 2019
@coodoo
Copy link

coodoo commented Oct 8, 2019

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

@pookjw
Copy link
Owner

pookjw commented Oct 8, 2019

@coodoo Does it work on 10.15 official release?

@lucien-guoheng
Copy link

@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.

@coodoo
Copy link

coodoo commented Oct 8, 2019

@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 😅

@bsormagec
Copy link

@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 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants