Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Blue Folders in Xcode

Tags:

xcode

I am working on an existing project where there are some blue folders that store some image references. If I create normal yellow folders, images are not read. So how do I create new blue folders?

enter image description here

like image 820
user1526474 Avatar asked Sep 11 '12 16:09

user1526474


People also ask

What are blue folders in Xcode?

Blue is used to represent a "Folder Reference". There are two types of folders in Xcode: groups and folder references. You can use groups to organize files in your project without affecting their structure on the actual file system.

How do I create a folder in Xcode?

You can create a new group, with its own folder, directly in Xcode, but it's not at all obvious. Instead of choosing 'New Group', choose 'Add Files to “<Project>”'. Then, in the file picker dialog, click the New Folder button or press Command-Shift-N and type the name of the new folder/group.

Why is my folder red in Xcode?

It means they are not found on disk where your project believes they should be. Control-click and Show In Finder to see the folder location to locate the file and drag it back in to the project, and delete the bad reference.


1 Answers

Drag the folder to your project and make sure you select Create folder references for any added folders

enter image description here

like image 198
DrummerB Avatar answered Sep 24 '22 03:09

DrummerB