The difference between the folder and group of the IOS Xcode project directory (the difference between blue and yellow folders)

Source: Internet
Author: User

Xcode project directory, sometimes you will find 2 different colors of the folder, one is blue, one is yellow, the most common is yellow, I also recently learned HTML5 time, found there are blue folders,

Let's see.


Shown, the blue is the folder yellow is group. So what's the difference between them?

1. The difference between group and folder

Group is generally only in the form of folders in your project, but in the local directory is still scattered in the form of the same, unless you are quoted in the form of group from outside.

Folder can only be used as a resource, the entire reference into the project, cannot compile the code, that is, the file is referenced in folder form, can not be placed in the Complie sources list.

2. Referencing files in folder format

I dragged the external folder Webviewjavascriptbridge under my Xcode project directory

A dialog box pops up,


Copy, refers to the file is not under the directory of the project, for example, the project on the desktop, the file under Download, you copy will be copied into the project. If the file is already inside the project, no action is taken. Regardless of it, the emphasis is on the following radio box.

Here I choose to refer to Folders as folder, click Finish, as shown, the folder is blue, and the list of compiled files is not WEBVIEWJAVASCRIPTBRIDGE.M This file, prove the folder reference, only refer to folders, the contents of the folder will be copied directly to bundle package, do not participate in the compilation.


2. Referencing a file as a group

Back in the first step of 1, select Create groups for any added folders, click Done, as shown, the folder is yellow, and the list of compiled files magically exists webviewjavascriptbridge.m this file


now, I finally understand the difference between the folder and the group.
transferred from: http://blog.csdn.net/fanjunxi1990/article/details/9352917

The difference between the folder and group of the IOS Xcode project directory (the difference between blue and yellow folders)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.