您将如何避免“Xcode, Subversion Error: 155007 (Path is not a working copy directory)"? [英] How would you avoid "Xcode, Subversion Error: 155007 (Path is not a working copy directory)"?

查看:21
本文介绍了您将如何避免“Xcode, Subversion Error: 155007 (Path is not a working copy directory)"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在对工作副本进行更改后,我看不到提交选项,但我确保了 svn 的设置是正确的.

此错误消息究竟有什么问题?

Xcode 显示:

<块引用>

您的路径不是工作副本

我应该怎么做才能解决这个问题?

解决方案

博客文章Xcode,Subversion 错误:155007(路径不是工作副本目录)" 及其注释几乎是对此类错误的参考.

简单的解决方法:

  1. 删除您的本地副本 (cd myxcodeproject; rm -rf .)
  2. 从服务器中删除build"文件夹
  3. svn co https://svnserver/path/trunk/project .

<块引用>

现在您应该在本地项目的每个目录中看到 .svn 文件夹(如果您使用 SCM 面板的Export"功能,您将看不到它们)来自 Xcode).
此时,您应该能够直接从 Xcode 编辑和提交您的更改.

现在您需要正确初始化项目.
以下部分说明了该部分:

如何做对(一般原则)

<块引用>

要将项目放到Xcode下,需要先导入.
SCM->commit entire project… 如果您不先执行此操作,则会给出错误 155007:

在 Xcode 的 SCM 菜单下,选择 Repositories,然后单击出现的对话框顶部的 IMPORT 图标.
从列表中选择项目,然后单击导入按钮.

当然,在执行上述步骤之前,您需要先配置至少一个存储库.

正确的初始化步骤(详细流程)

<块引用>

  1. 在 XCODE 中创建项目.
  2. 在 XCODE 中设置 subversion 并为此项目选择 subversion 存储库.
  3. 使用 Xcode SCM > Repository 并单击 IMPORT 图标.这会将本地副本移动到 subversion 存储库.
  4. 现在删除您的本地副本(或将其移动到其他位置以防万一).
  5. 最后从 subversion 检查项目(这将创建 subversion .svn 文件夹,...).
  6. 重新选择此项目的 Subversion 存储库.
  7. 提交整个项目.

I am not able to see the commit option after I make changes to my working copy, but I ensured that my settings for svn were correct.

What exactly is the problem with this error message?

Xcode is showing:

Your path is not a working copy

What should I do to resolve this?

解决方案

The blog post "Xcode, Subversion Error: 155007 (Path is not a working copy directory)" and its comment are pretty much the reference on this kind of error.

Simple Workaround:

  1. Delete your local copy (cd myxcodeproject; rm -rf .)
  2. Delete the "build" folder from the server
  3. svn co https://svnserver/path/trunk/project .

Now you should see .svn folders in every directory of your local project (you don’t see them if you use the "Export" function of the SCM panel from Xcode).
At this point, you should be able to edit and commit your changes directly from Xcode.

Now you need to initialize correctly the project.
The following sections illustrate that part:

How to do it right (general principle)

To place the project under Xcode, you need to first import it.
The SCM->commit entire project… gives error 155007 if you don’t first do this:

Under the SCM menu in Xcode select Repositories, then click the IMPORT icon at the top of that dialog that appears.
Select the project from the list and then click the import button.

Of course you need to first configure at least one repository before doing the steps above.

Right Initialization steps (detailed process)

  1. Create the project in XCODE.
  2. Setup subversion in XCODE and select the subversion repository for this project.
  3. Use Xcode SCM > Repository and click on the IMPORT icon. This will move the local copy to the subversion repository.
  4. Now delete your local copy (or move it to another location just in case).
  5. Finally CHECKOUT the project from subversion (this will create the subversion .svn folders, …).
  6. Reselect the subversion repository for this project.
  7. Commit the entire project.

这篇关于您将如何避免“Xcode, Subversion Error: 155007 (Path is not a working copy directory)"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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