Xcode: project navigator, difference between Yellow folder and blue folder - ios

I want to know the difference between a blue folder and a yellow folder in Xcode.
I found this but doesn't clarify my doubts!

Yellow folders are "Groups", they are not actual folders but references to folders/files. They exist only to organize your project in Xcode. Blue folders are actual folders existent in the file system.
Blue folders give you the benefit of not having to "Add File" everytime something new lands in the folder i.e. an image. However, you should still mostly use groups (aka yellow folders) because it gives you more control on what will be bundled with your app (think of hidden files in the folder/versioning files). Also, sometimes blue folders can mess up your file hierarchy in your bundle, ie. causing the splash screen to malfunction.
There are only a few cases where you would use blue folders, like a "content" folder, where anything in the folder should be packed with the bundle (as Mark Szymczyk commented, images or videos). If you're not sure, stick with yellow folders.

Yellow folder should be links (group, act as a folder, but if you check in Finder, there are not, like a Playlist in iTunes), and blues ones are « physical » (as folder in Finder).

Related

Change icons of 100 folders

I kind of have 100+ folders that have an icon.ico file inside of them and I want to change the icon of each folder with the icon inside the folder. Is there a way I can make the computer do this for me?

Xcode added folder in blue and related there files are not compiling

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.
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
It will be added as yellow
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.

Updating cocos2d in xcode, add kazmath

So I have an existing cocos2d project and wanted to upgrade cocos2d version. I right click on my project in xcode and selected "Add files...." option. Then I choose kazmath folder from the cocos2d extracted folder.
I selected copy items if needed when adding the files to my project. Now the problem is that kazmath library is shown as blue icon in my project and is not able to get referenced. Other source code folders are shown in yellow icon so definitely something is different here.
The screenshot is:
You Selected Create folder references option instead of Create groups option.
Delete folder and add again. make sure you selected Create groups option.
After doing this if still you get error then drag kazmath folders parent folder to header search path window.

Custom folder (group) icons in Xcode's Project Navigation Pan

In the project navigator on the left, I want to give different folders (groups) different custom icons.
For instance, I have the files for my chat module in a folder called Chat. I want to change the icon for that folder to the chat icon that I have in the app. Is there any way I can accomplish this?
I am not sure if it is at all possible and I have not looked into it so this is just an idea, but if it is possible then you probably have to manually edit the project.pbxproj file within the xcodeproj file ([ctrl]+click/right click on the xcodeproj file and select Show Package Contents). It will probably take you a while to understand how pbxproj files work though.

Why can't I see all of the files that are in my workspace in xcode in the left sidebar?

I was doing some work on my iOS app and all of a sudden, something really strange began to happen:
For a second or so after I open my workspace, all of the files that I've added to the workspace are visible in the left sidebar as they should be. But after this second passes, a large chunk of these files vanish from the left sidebar. And it's not like they're completely gone - I can see the entire directory structure and files through the dropdown view, as shown in the attached screenshot. But as can also be seen in the attached screenshot, I cannot see this same information in the left sidebar.
And it's not because I haven't actually added these files to the workspace. I have - when I try to add the files again, all of the files are greyed out...meaning they've already been placed in the project.
I've tried restarting Xcode and restarting my Mac. I'm thinking about deleting the .workspace file and re-running pod install, but I don't want to do that until I've ruled out other options...that I might not be aware of but someone here might be able to quickly point out.
I've tried searching for this particular problem on Stackoverflow and on Google but to no avail.
Help would be much appreciated.
Look at the bottom of the left sidebar. You have selected the second icon (in blue) which means, you are displaying only the recent files of your project. Unselect it to display all your files.

Resources