Can I retrieve an Xcode project I installed on my iPhone?
It should appear in the trash folder on your Mac. To access it click the trash icon in the dock.

You should be able to recover it there if you didn’t empty the trash.