XCODE SCM

如何激活SCM的file status(原文地址:[url]http://yarshure.com/bbs/thread-7941-1-1.html[/url])
鼠标右击 project上面的Groups & Files,会出现个菜单,将其中SCM打钩即可。

1、不要将工程的Build目录放入仓库。
Excluding the build Directory from Source Control Operations
A project’s build directory contains many files generated by the Xcode build system. These files should not
go into a source control repository because of their volatility and because they have little need to be tracked
by such a system.
In managed projects, you should move the projects’ build directory to a location outside the realm of source
control operations—that is, outside the project’s project root.
You can specify a custom location for the build directory, in Building preferences
2、SCM的配置选项:
■ Save files before SCM operations. Specifies whether Xcode automatically saves changed files before
performing any source control operations.
■ Configure SCM automatically. Specifies whether Xcode chooses an appropriate SCM repository for a
project after checking it out using the Repositories window. See "Checking Out Directories" (page 16)
for more information
3、两个重要文件:
A、The project file. project.xcodeproj
If you make structural changes to the project, such as [color=red]adding or removing files[/color], you must commit this
file along with the other changes (for example, when you commit a file you added to your working copy,
you must also commit the project package). Otherwise, the project file may become out of sync with
the rest of the project’s files (source code files, resource files, and so on).
B、The user file <username>.pbxuser
You should include your user file in your commits and updates if you
want to safeguard your personal settings for the project in the repository or if you work on the project
on more than one computer and want to use the same settings on all of them.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值