Defining Shared Locations for Project Files

Defining Shared Locations for Project Files
Thunder Download Plugin
Thunder Download Plugin

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.

Defining Shared Locations for Project Files - 果果 - 大菜果果
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 - 果果 - 大菜果果
 

 

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值