JK3Y / asepsis

a solution for .DS_Store pollution
http://asepsis.binaryage.com
Other
72 stars 3 forks source link

`rake install` reports a bunch of `No such file or directory` errors #7

Closed huangzonghao closed 6 years ago

huangzonghao commented 6 years ago

I am running Mojave and tried to follow the instruction in readme. The compiling was successful. But when I try to rake install I got some errors. Here is the command output.

> sudo cp -a "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic"
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic: Operation not permitted
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A: unable to copy extended attributes to /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic: Operation not permitted
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/_CodeSignature: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/_CodeSignature: unable to copy extended attributes to /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/_CodeSignature: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/_CodeSignature/CodeResources: No such file or directory
cp: utimes: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/_CodeSignature: No such file or directory
cp: chown: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/_CodeSignature: No such file or directory
cp: chmod: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/_CodeSignature: No such file or directory
cp: chflags: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/_CodeSignature: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/_CodeSignature: unable to copy ACL to /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/_CodeSignature: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Resources: unable to copy extended attributes to /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources/DesktopServicesHelper: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources/Info.plist: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources/version.plist: No such file or directory
cp: utimes: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources: No such file or directory
cp: chown: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources: No such file or directory
cp: chmod: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources: No such file or directory
cp: chflags: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Resources: unable to copy ACL to /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/Resources: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic/DesktopServicesPriv: No such file or directory
cp: utimes: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic: No such file or directory
cp: chown: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic: No such file or directory
cp: chmod: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic: No such file or directory
cp: chflags: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic: No such file or directory
cp: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A: unable to copy ACL to /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_Backup_Panic: Operation not permitted
failed with code pid 58688 exit 1
> "/Library/Application Support/Asepsis/ctl/asepsisctl" install_updater
> sudo cp "/Library/Application Support/Asepsis/com.binaryage.asepsis.updater.plist" "/Library/LaunchAgents/com.binaryage.asepsis.updater.plist"
Asepsis installation encountered some failures, please inspect the command output.

What might be going wrong here?

JK3Y commented 6 years ago

So after some testing it looks like Apple has patched the method I was using to run Asepsis with SIP enabled. With it enabled I have the same issue as #6 . Disable SIP and try to install again.