1

我已连接到 git 存储库。每次我想提交某些东西时,Xcode 都会说“操作无法完成。(com.apple.dt.IDESourceControlErrorDomain 错误 -70。)”。按确定后,我可以提交我的更改,一切看起来都很好,但这很烦人。有人有解决方案吗?提前致谢。

4

1 回答 1

1

我有同样的问题,我是一个基本的 svn 用户,所以我确信有更好的答案,但它帮助了我,冲突在我的 project.xcodeproj 文件上,所以我关闭了 XCode,我创建了当前项目的备份,由于 xcodeproj 文件即将更改并且可能会崩溃,因此不确定快照功能是否有效,我打开了终端,并执行了提示我的命令“svn update”:

Conflict discovered in 'myProject.xcodeproj/project.pbxproj'.
Select: (p) postpone, (df) diff-full, (e) edit,
        (mc) mine-conflict, (tc) theirs-conflict,
        (s) show all options: 

我选择了's',然后我得到了

  (e)  edit             - change merged file in an editor
  (df) diff-full        - show all changes made to merged file
  (r)  resolved         - accept merged version of file

  (dc) display-conflict - show all conflicts (ignoring merged version)
  (mc) mine-conflict    - accept my version for all conflicts (same)
  (tc) theirs-conflict  - accept their version for all conflicts (same)

  (mf) mine-full        - accept my version of entire file (even non-conflicts)
  (tf) theirs-full      - accept their version of entire file (same)

  (p)  postpone         - mark the conflict to be resolved later
  (l)  launch           - launch external tool to resolve conflict
  (s)  show all         - show this list

我选择了“tc”,然后再次打开我的项目并应用了我的更改。

于 2013-04-01T15:47:39.247 回答