Cannot remove iOS simulator receipt files from Trash

You need to disable System Integrity Protection (SIP).

  • Reboot the Mac in Recovery mode : Hold down Command + R after you hear the startup chime
  • Launch the terminal (Utilities > Terminal)
  • csrutil disable
  • Reboot
  • Empty your trash
  • Reboot again in Recovery mode
  • Launch the terminal
  • csrutil enable
  • Reboot