Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 4: Problem deleting project files within a project

I am using XCode 4. Some time ago I added two sample projects to my main project. I didn't save it as workspace so al three projects are in the same one. The problem is that I cannot delete the sample projects from my main project. When I right click one of them, the delete option is disable. If I press CMD+Delete or Delete nothing happens.

Thanks in advance.

like image 526
mikywan Avatar asked Dec 28 '25 03:12

mikywan


2 Answers

It is probably a bug, but the Delete option is only active if you are working in an Xcode workspace, and not when opening a project file directly.
Start off by creating a new workspace in Xcode 4 (File > Save As Workspace), then you can add/remove projects as necessary.

like image 190
antalkerekes Avatar answered Dec 30 '25 16:12

antalkerekes


I had the same problem. On the far right, click on "Organizer". In the "Organizer", click on the Projects icon and then right click on the project you want to delete. Click on "Reveal in Finder". You will then be in the project directory in Finder. Go up one directory and delete the project. The next time you start Xcode, the project should be gone.

like image 29
user913350 Avatar answered Dec 30 '25 17:12

user913350



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!