Define custom source trees—named locations for files that are outside the project folder. This is useful if you need access to files that are shared by other projects or users. You can define these shared locations in the Source Trees pane of Xcode preferences.
To open the Source Trees pane, choose Xcode > Preferences and click Source Trees.
The columns are as follows:The table in the Source Trees pane lists all of the source trees that you have defined. Any source tree in this table is available to any of your projects.
Setting Name is a text string thatidentifies the source tree. This name must be the same for all users accessing items with the source tree.
Display Name is a text string that Xcode uses to display the source tree in the File inspector. This can be any string you like.
Path is the full path to the root directory of the source tree on your local filesystem. This path may vary from computer to computer and from user to user.
Use the Add (+) button at the bottom of the pane to add a new source tree entry to the table. Use the Remove (-) button to delete the selected source tree from the table.
When you add a file to a project, you can specify its location relative to a source tree defined for your computer. Xcode stores its reference to the file relative to this source tree. Other users who have the same source tree defined are able to work on the same project seamlessly, provided that the file also exists at the source tree location on their computers.
You can set any file reference to compute its path relative to a named source tree. In the File inspector's Identity and Type section, find the Location pop-up menu. This menu lists the source trees you have defined (in addition to the source trees that Xcode provides.)
![Defining Shared Locations for Project Files - 果果 - 大菜果果 Defining Shared Locations for Project Files - 果果 - 大菜果果](http://img0.ph.126.net/befYDevG6UwGsPQRq8qeXg==/3399373293834654657.png)
For example, a team of developers could each define a source tree named Shared on their computers. Each developer enters a custom display name and path to the source tree in Source Tree preferences. Some or all of the files in their projects could be located in this source tree. The actual path to the source tree on each computer could be different.