Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a blue folder in Xcode

Tags:

xcode

I have opened a project from Github, which has blue folders in its file structure.

As far as I understand this is a physical folder reference rather than just a means of grouping files together which might just lay around loosely on your hard drive.

So my question: When do you use those blue folders over the "normal" Group, what are its advantages and drawbacks and how do you create them in Xcode?

like image 643
Besi Avatar asked Mar 08 '26 23:03

Besi


2 Answers

If you use blue folder references for your resources these folders will also be created inside your application bundle, while resource files in groups will simply be copied to your mainBundle's root directory.

like image 178
Felix Lamouroux Avatar answered Mar 10 '26 14:03

Felix Lamouroux


When folder structure is managed outside of XCode (for example, a cross-platform project which has project files for different versions of XCode, Visual Studio and other IDEs, all using mostly the same directory tree), you normally want folder references. Otherwise one would have to recreate every project file every time folder structure changes.

like image 36
hamstergene Avatar answered Mar 10 '26 16:03

hamstergene