pookjw / SidecarPatcher

Enables Sidecar on old Mac and iPad for macOS 10.15
GNU General Public License v3.0
667 stars 54 forks source link

Permissions issues #1

Closed mmichon closed 5 years ago

mmichon commented 5 years ago

I'm getting the following error, even those SIP is disabled:

mmichon@Mikes-MBAir-2015~/Downloads> sudo ./SidecarPatcher
Password:
Ooops! Something went wrong: Error Domain=NSCocoaErrorDomain Code=642 "You can’t save the file “SidecarCore” because the volume “Macintosh HD” is read only." UserInfo={NSUserStringVariant=(
    Remove
), NSFilePath=/System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore, NSUnderlyingError=0x7f9ccad05f60 {Error Domain=NSPOSIXErrorDomain Code=30 "Read-only file system"}}

Looking at the code, it's doing something like this, which also has permissions issues:

mmichon@Mikes-MBAir-2015/t/SidecarPatcher> sudo cp /tmp/SidecarPatcher/SidecarCore /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore
cp: /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/SidecarCore: Read-only file system
pookjw commented 5 years ago

If you can't copy a file to /System even SIP is disabled, that's macOS Catalina issue. Try enabling SIP and disabling SIP.

mmichon commented 5 years ago

I've tried enabling then disabling, and it's still the same issue. I thought disabling SIP was supposed to allow writes to /System again?

pookjw commented 5 years ago

Yep. I don't know why that issue happens...

mmichon commented 5 years ago

Looks like it's a new Catalina mount option. This fixed it: sudo mount -uw /; killall Finder. Might wanna add that code. Thanks!

nairbf commented 1 year ago

Does this still work in 2022