xcodes icon indicating copy to clipboard operation
xcodes copied to clipboard

Add the ability to delete the xip file completely

Open tahirmt opened this issue 3 years ago • 3 comments

The default behavior of moving the xip file to the trash after it is installed makes sense but I think it would be beneficial to add an option to delete the file completely instead so we don't have to do the manual process of cleaning trash afterwards

tahirmt avatar Feb 16 '22 03:02 tahirmt

+1 to this. In my case, I'm automating xcodes with a script, and this behavior is problematic because scripts cannot read the Trash (unless they have Full Disk Access, reducing security).

I do agree with the initial idea that the .xip should be preserved by default, so maybe adding a --delete-xip flag to xcodes install would be the best?

juanjonol avatar Feb 19 '22 11:02 juanjonol

Additionally, I'd appreciate a --delete-app flag for xcodes uninstall as well. Moving it to the Trash alone is not really useful since it requires emptying the Trash afterwards (which takes ages compared to rm -r).

davdroman avatar Mar 14 '22 10:03 davdroman

This is specifically a problem when SIP is enabled and seems there is no way to programmatically clean trash.

fkorotkov avatar May 17 '22 20:05 fkorotkov