How do I remove a link to a file in Xcode?

It's odd. I added the file to the project, thought I didn't need to delete it like that, and then realized that it really needs it. When deleting, I got a prompt asking whether to move to the trash can or just remove links, I selected the remove link. Now I cannot add this file back because I was told that there is a file with that name in there. What's going on here? There is no file with that name in this list. Is there some other place I need to delete something?

+3


source to share


1 answer


If you only removed the link to the file, it is still in the project folder and you cannot add a new file with the same name. Therefore, you must go to the folder where your project is located and delete the file. (Right click on the project and select Show in Finder )



+3


source







All Articles