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

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.

Related

How to create a new .storyboard file in a blue folder in Xcode?

When I try to create a new file by right clicking a grey folder I get this window
enter image description here
However, when I right click a blue folder to do the same thing I get this single file instead
enter image description here
A blue folder is a folder reference. You might want to convert the folder reference to an actual folder. Rightclick it and open it in finder, you will see that the path is different than in your project view. You can drag it into your project and tick 'Create groups'. You can also tick 'Copy items if needed' if wanted.
You also could create a storyboard on a different destination and than drag it into the desired folder reference.

Files disappeared from Xcode project, but still in folder

Morning I opened my xcode project to do some changes, but all files are disappeared. I don't kno why and I haven't any idea how I can return them back. All files are in folder, but can't see them in project navigation. is there any way to put them back to project?
NOTE: Filter in the Filter Bar is OFF.
Right click the project or folder icon in the navigator and select the "Add Files To..." option to add existing files back into a project.

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.

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

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).

MainWindow.xib Does Not Show Up in Files Pane After Accidental Deletion

I am using XCode 4.0.2 and I accidentally deleted MainWindow.xib. I used SVN to revert it and I have seen that it is located inside an en.lproj directory. The problem is I can't make it show up on the left pane anymore.
What can I do to make it show up there?
Does the project compile and find the file successfully? If not, have you tried dragging it from Finder into your left pane? And choosing not to copy to directory (if it's already in the right folder in Finder)?

Resources