我应该在 SVN 中提交 .xcodeproj 文件吗? [英] should I commit .xcodeproj file in SVN?

查看:43
本文介绍了我应该在 SVN 中提交 .xcodeproj 文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该提交项目文件 (.xcodeproj) 吗?当我从一个系统提交此文件并在第二个系统上更新它时,该项目已损坏并且 Xcode 无法打开它.

Should I commit the project file (.xcodeproj)? When I commit this file from one system and update it on a second system, the project gets corrupted and Xcode won't open it.

这是预期的行为,还是我做错了什么?这是我忽略的文件列表:

Is this expected behavior, or am I maybe doing something wrong? Here is my list of ignored files:

*.o,*.lo,*.la,*.al,.libs,*.so,*.so.[0-9]*,*.a,*.pyc,*.pyo,*.rej,*~,#*#,.#*,.*.swp,.DS_Store,*.pbxuser,*.perspective,*.perspectivev3,*.project.xcworkspace,*.xcuserdata,*.mode1v3,*.mode2v3,build/,build,/build/

我应该在这个列表中添加一些东西吗?我应该忘记 SVN 并切换到 GIT 吗?

Should I add something to this list? Should I forget the SVN and switch to GIT?

我使用 Cornerstone 作为 SVN 客户端并使用 Xcode 3.2.5

I am using Cornerstone as SVN client and using Xcode 3.2.5

请帮忙;我卡住了!

推荐答案

提交并跟踪它.具体来说,您需要其中的一些位 - 最重要的是 project.pbxproj.看起来您已经忽略了特定于用户的部分(这很好).

do commit and track it. specifically, there are a few bits in there which you want - the most important is project.pbxproj. it looks like you have already ignored the user-specific pieces (which is good).

问题是,它在分布式环境中经常会发生冲突.将您的项目和/或其定义分解成更小的部分以避免这种风险.项目文件是一种文本格式 - 在某些情况下它可以毫无问题地合并.

problem is, it will conflict often in distributed environments. break your projects and/or their definitions into smaller pieces to avoid this risk. the project file is a text format - it will merge without issue in some cases.

我不跟踪这些:

*.xcbkptlist
*.xcuserstate

但是您需要跟踪一些的方案和工作区文件,这是 Xc4 中的新功能.再说一次,不要费心跟踪用户定义的位,除非您真的喜欢跟踪它们,并且您是唯一提交的人.

but you'll want to track some of the scheme and workspace files, new in Xc4. again, don't bother tracking the user defined bits, unless you really like them to be tracked, and you are the only person committing.

我建议的另一件事是构建到位于版本化源目录之外的中心位置——源中没有 build/ 目录,即使它们是忽略.

another thing i recommend is to build to a central location which lies outside of your versioned source directories -- no build/ directories among the sources, even if they are ignored.

这篇关于我应该在 SVN 中提交 .xcodeproj 文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆