Reputation: 1112
From Xcode project right click and Add File to "projectName"
there I created a NewFolder "ABCD"
name and added to same "ABCD" empty folder to the project its in Blue colour, I expected its in Yellow Color, What the files which I added inside Blue Colour folder files are not compiling in X-Code all files which added in Blue Colour folder say file is not found after compiling the code.
Is there any why that default, I added folder are link related to the project?
Its very strange for me this issue, Your feedback is very helpful.
Upvotes: 18
Views: 10113
Reputation: 3304
If you simply drag drop a file and choose Create Folder reference, it will add as a blue folder. Please make sure you select "Create groups" from the dialogue and make sure you have selected all the targets in the "Add To Targets" section.
Like this
Group-> With groups, Xcode stores in the project a reference to each individual file. This can lead to problems:
Folder references-> Folder references are simpler. You can spot a folder reference because it shows up in blue instead of yellow.
Upvotes: 53