Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: How to add a file to a folder reference

Tags:

xcode

I want to add a file to an existing folder in Xcode. I have a folder in the file system that I have added to my resources. Now when I add a file to that folder, and try to drag and drop that file onto the folder reference in Xcode, I am out of luck.

Even if I delete the reference and drag the whole folder over again, it does not work, as it imports all files that were in the folder when I originally imported it, but not the new ones.

Any ideas on that one?

screenshot

like image 275
Joseph Tura Avatar asked Mar 02 '11 18:03

Joseph Tura


1 Answers

Drag it into that folder in Finder, then right click that blue folder in Xcode and then "touch" it. Or collapse and expand that folder icon (is like touching it).

like image 150
horseshoe7 Avatar answered Sep 19 '22 12:09

horseshoe7